CVE-2025-15366: medium-severity vulnerability in Python Software Foundation CPython
IMAP command injection in user-controlled commands
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
13Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 5.9epss 0.4%
The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.
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 products
Python Software Foundation · CPythonRelated CVEs — Python Software Foundation CPython
In the same product, most dangerous first.
CVE-2024-7592HIGHQuadratic complexity parsing cookies with backslashesEPSS 2.3%CVE-2024-6232HIGHRegular-expression DoS when parsing TarFile headersEPSS 2.2%CVE-2024-12254HIGHUnbounded memory buffering in SelectorSocketTransport.writelines()EPSS 1.9%CVE-2025-13836MEDIUMExcessive read buffering DoS in http.clientEPSS 1.7%CVE-2025-0938MEDIUMURL parser allowed square brackets in domain namesEPSS 1.6%CVE-2025-4138HIGHBypassing extraction filter to create symlinks to arbitrary targets outside extraction directoryEPSS 1.5%
References
https://github.com/python/cpython/commit/298182272a740ce2016aee2f54acbd0bba1944c1https://github.com/python/cpython/commit/6262704b134db2a4ba12e85ecfbd968534f28b45https://github.com/python/cpython/commit/71926d943c05bde79bd2a866933103541d91b6a2https://github.com/python/cpython/commit/d0921efb665aff26b378f495e5ff84f7e3fe649dhttps://github.com/python/cpython/commit/f2cd7ef89aa8a0dcbc7283bbd39548b76f2a736ahttps://github.com/python/cpython/issues/143921https://github.com/python/cpython/pull/143922https://mail.python.org/archives/list/security-announce@python.org/thread/DD7C7JZJYTBXMDOWKCEIEBJLBRU64OMR/