CVE-2024-6923

Email header injection due to unquoted newlines

At a glance

Severity
MEDIUM 5.5
EPSS
EPSS 1.10 % · percentile 65 (2026-10-27)
State
PUBLISHED
Published
Updated
Assigner
PSF
NVD status
Deferred

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.

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:LCISA-ADP
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:LNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

Weaknesses (CWE)

European references

CERT-FR advisories

Affected products

ProductVersions
Python Software Foundation · CPythonaffected 0 < 3.8.20 ; affected 3.9.0 < 3.9.20 ; affected 3.10.0 < 3.10.15 ; affected 3.11.0 < 3.11.10 ; affected 3.12.0 < 3.12.5 ; affected 3.13.0a1 < 3.13.0rc2

References

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD