CVE-2025-15366
The imaplib module, when passed a user-controlled command, can have …
The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/python/cpython/commit/6262704b134db2a4ba12e85ecfbd968534f28b45
- github.com/python/cpython/issues/143921
- github.com/python/cpython/pull/143922
- mail.python.org/archives/list/[email protected]/thread/DD7C7JZJYTBXMDOWKCEIEBJL
- github.com/python/cpython/commit/d0921efb665aff26b378f495e5ff84f7e3fe649d
- github.com/python/cpython/commit/f2cd7ef89aa8a0dcbc7283bbd39548b76f2a736a
- github.com/python/cpython/commit/298182272a740ce2016aee2f54acbd0bba1944c1
- github.com/python/cpython/commit/71926d943c05bde79bd2a866933103541d91b6a2
- nvd.nist.gov/vuln/detail/CVE-2025-15366
- cve.org/CVERecord?id=CVE-2025-15366
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.