CVE-2024-6923: Email header injection due to unquoted newlines
CVE-2024-6923 affects 179 listed versions of Python in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Python
179 of 250 listed versions are affected. Fixed in 3.12.5, 3.11.10, 3.10.15, 3.9.20, 3.8.20. The newest release, 3.15.2, is not affected.
3.12.4 3.12.3 3.12.2 3.11.9 3.11.8 3.11.7 3.11.6 3.11.5 3.11.4 3.10.14 3.10.13 3.10.12 3.10.11 3.10.10 3.10.9 3.10.8 3.9.19 3.9.18 3.9.17 3.9.16 3.9.15 3.9.14 3.9.13 3.9.12 3.9.11 3.8.19 3.8.18 3.8.17 3.8.16 3.8.15 3.8.14 3.8.13 3.8.12 3.8.11 3.8.10 3.8.9 3.8.8 3.8.7 3.8.6 3.7.17 3.7.16 3.7.15 3.7.14 3.7.13 3.7.12 3.7.11 3.7.10 3.7.9 3.7.8 3.7.7 3.7.6 3.7.5 3.7.4 3.7.3 3.6.16 3.6.15 3.6.14 3.6.13 3.6.12 3.6.11 and 119 more
What it is
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:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L (Psf)
Published by Psf on 1 August 2024. Last changed 17 June 2026.
Sources
Check one version you run: look CVE-2024-6923 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.