Back
CVE-2025-15366
IMAP command injection in user-controlled commands
Medium5.9EPSS 0.43%
- Published
- Updated
- Reserved
- Assigned by
- PSF
Description
The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| PSFCNA (assigner) | 4.0 | Medium5.9 | 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 |
| NVDNVD · Deferred | 4.0 | Medium5.9 | 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 |
- EPSS (exploitation in 30 days)
- 0.43% · top 62% of all CVEs (5 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.9.
Weakness
Affected products
Python Software Foundation · CPython
- affected < 3.13.15
- affected 3.14.0 – < 3.14.7
- affected 3.15.0a1 – < 3.15.0a6
References (8)
- https://github.com/python/cpython/issues/143921 (opens in a new tab)issue-tracking
- https://github.com/python/cpython/pull/143922 (opens in a new tab)patch
- https://mail.python.org/archives/list/[email protected]/thread/DD7C7JZJYTBXMDOWKCEIEBJLBRU64OMR/ (opens in a new tab)vendor-advisory
- https://github.com/python/cpython/commit/6262704b134db2a4ba12e85ecfbd968534f28b45 (opens in a new tab)patch
- https://github.com/python/cpython/commit/d0921efb665aff26b378f495e5ff84f7e3fe649d (opens in a new tab)patch
- https://github.com/python/cpython/commit/f2cd7ef89aa8a0dcbc7283bbd39548b76f2a736a (opens in a new tab)patch
- https://github.com/python/cpython/commit/298182272a740ce2016aee2f54acbd0bba1944c1 (opens in a new tab)patch
- https://github.com/python/cpython/commit/71926d943c05bde79bd2a866933103541d91b6a2 (opens in a new tab)patch
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2025-15366)Record last updated .