CVE-2025-15366 — Command Injection in Software Foundation Cpython
Severity
5.9MEDIUMNVD
OSV5.7
EPSS
0.1%
top 76.20%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedJan 20
Latest updateMar 9
Description
The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N
Affected Packages1 packages
🔴Vulnerability Details
4OSV▶
python3.4, python3.5, python3.6, python3.7, python3.8, python3.9,
python3.10, python3.11, python3.12, python3.13, python3.14 regression↗2026-03-09
GHSA▶
GHSA-4c67-8q63-xrxq: The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines↗2026-01-21
OSV▶
CVE-2025-15366: The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines↗2026-01-20