{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-15366","id":"CVE-2025-15366","title":"IMAP command injection in user-controlled commands","description":"The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.","descriptionLong":"The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.","published":"2026-01-20T21:40:24.938Z","updated":"2026-11-10T10:45:38.833752409Z","reserved":"2025-12-30T16:06:41.731Z","status":"Deferred","rejected":false,"assigner":"PSF","metric":{"version":"4.0","score":5.9,"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","rating":"medium","source":"PSF"},"metrics":[{"version":"4.0","score":5.9,"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","rating":"medium","source":"PSF"},{"version":"4.0","score":5.9,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"python.org"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"}],"rating":"medium","products":["Python Software Foundation CPython"],"affectedProducts":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"3.13.15","status":"affected","versionType":"python"},{"version":"3.14.0","lessThan":"3.14.7","status":"affected","versionType":"python"},{"version":"3.15.0a1","lessThan":"3.15.0a6","status":"affected","versionType":"python"}],"platforms":[]}],"packages":[],"cwes":["CWE-77"],"aliases":["BIT-libpython-2025-15366","BIT-python-2025-15366","BIT-python-min-2025-15366","PSF-2026-3"],"references":[{"url":"https://github.com/python/cpython/issues/143921","tags":["issue-tracking","report"]},{"url":"https://github.com/python/cpython/pull/143922","tags":["patch","fix","web"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/DD7C7JZJYTBXMDOWKCEIEBJLBRU64OMR/","tags":["vendor-advisory","advisory"]},{"url":"https://github.com/python/cpython/commit/6262704b134db2a4ba12e85ecfbd968534f28b45","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/d0921efb665aff26b378f495e5ff84f7e3fe649d","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/f2cd7ef89aa8a0dcbc7283bbd39548b76f2a736a","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/298182272a740ce2016aee2f54acbd0bba1944c1","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/71926d943c05bde79bd2a866933103541d91b6a2","tags":["patch","fix"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/15xxx/CVE-2025-15366.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-15366","tags":["advisory"]},{"url":"https://github.com/python/cpython","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00431,"epssPercentile":0.38026,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-15366","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-15366","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-15366","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-15366","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["python"],"critical":[],"attention":null}