Medium severity · published Jan 20, 2026
CVE-2025-15366
IMAP command injection in user-controlled commands
5.9
CVSS
0.4%
EPSS
No
On KEV
Description
The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 37% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CP
CPython · Python Software Foundation
before 3.13.15; 3.14.0 before 3.14.7; 3.15.0a1 before 3.15.0a6 · source: vendor