Medium severity · published Aug 1, 2024
CVE-2024-6923
Email header injection due to unquoted newlines
5.5
CVSS
1.1%
EPSS
No
On KEV
Description
There is a MEDIUM severity vulnerability affecting CPython.
The
email module didn’t properly quote newlines for email headers when
serializing an email message allowing for header injection when an email
is serialized.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.1% · higher than 66% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CP
CPython · Python Software Foundation
before 3.8.20; 3.9.0 before 3.9.20; 3.10.0 before 3.10.15; 3.11.0 before 3.11.10; 3.12.0 before 3.12.5; 3.13.0a1 before 3.13.0rc2 · source: vendor, CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-6923
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-6923
github.com
https://github.com/python/cpython/commit/06f28dc236708f72871c64d4bc4b4ea144c50147
github.com
https://github.com/python/cpython/commit/097633981879b3c9de9a1dd120d3aa585ecc2384
github.com
https://github.com/python/cpython/commit/4766d1200fdf8b6728137aa2927a297e224d5fa7
github.com
https://github.com/python/cpython/commit/4aaa4259b5a6e664b7316a4d60bdec7ee0f124d0
github.com
https://github.com/python/cpython/commit/b158a76ce094897c870fb6b3de62887b7ccc33f1
github.com
https://github.com/python/cpython/commit/f7be505d137a22528cb0fc004422c0081d5d90e6
More from CPython
9.4
CVE-2026-115557
Distrust compromised intermediate certificates in ssl module
9.4
CVE-2025-4517
Arbitrary writes via tarfile realpath overflow
9.2
CVE-2026-19445
Use-after-free of a server-side SSLContext when sni_callback switches contexts
8.8
CVE-2026-3298
Out-of-bounds write in Windows asyncio.ProacterEventLoop.sock_recvfrom_into() when using nbytes
8.7
CVE-2024-8088
Infinite loop when iterating over zip archive entry names from zipfile.Path
