CVEvulnerability
CVE-2025-15366
5.9 MEDIUM
Official page ↗
- Status
- Deferred
- Published
- 2026-01-20
- Last modified
- 2026-08-06
- Assigner
- [email protected]
- CVSS 4.0 ([email protected])
- 5.9 MEDIUM — 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
- Weaknesses
- CWE-77
Description
The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.
Related
Weakness · CWE (1)
- CWE-77 Improper Neutralization of Special Elements used in a Command weakness
References
- https://github.com/python/cpython/commit/298182272a740ce2016aee2f54acbd0bba1944c1 github.com
- https://github.com/python/cpython/commit/6262704b134db2a4ba12e85ecfbd968534f28b45 github.com
- https://github.com/python/cpython/commit/71926d943c05bde79bd2a866933103541d91b6a2 github.com
- https://github.com/python/cpython/commit/d0921efb665aff26b378f495e5ff84f7e3fe649d github.com
- https://github.com/python/cpython/commit/f2cd7ef89aa8a0dcbc7283bbd39548b76f2a736a github.com
- https://github.com/python/cpython/issues/143921 github.com
- https://github.com/python/cpython/pull/143922 github.com
- https://mail.python.org/archives/list/[email protected]/thread/DD7C7JZJYTBXMDOWKCEIEBJLBRU64OMR/ mail.python.org