{"id":"CVE-2025-15366","published":"2026-01-20T21:40:24Z","modified":"2026-08-06T00:37:36Z","title":"IMAP command injection in user-controlled commands","vendor":"Python Software Foundation","product":"CPython","tier":"tail","description":{"text":"The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00431,"percentile":0.38251,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/python/cpython/issues/143921","tags":["issue-tracking"]},{"url":"https://github.com/python/cpython/pull/143922","tags":["patch"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/DD7C7JZJYTBXMDOWKCEIEBJLBRU64OMR/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/commit/6262704b134db2a4ba12e85ecfbd968534f28b45","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/d0921efb665aff26b378f495e5ff84f7e3fe649d","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/f2cd7ef89aa8a0dcbc7283bbd39548b76f2a736a","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/298182272a740ce2016aee2f54acbd0bba1944c1","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/71926d943c05bde79bd2a866933103541d91b6a2","tags":["patch"]}],"priority":{"score":11.8,"factors":[{"name":"EPSS percentile","points":7.65},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"python-software-foundation","affectedVersions":[{"vendor":"Python Software Foundation","product":"CPython","versions":["< 3.13.15",">= 3.14.0, < 3.14.7",">= 3.15.0a1, < 3.15.0a6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-01-22T04:55:32.252111Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-206304","exploited":false,"provenance":"source"}}