CVE-2024-6923

Email header injection due to unquoted newlines

State
Published
Severity
5.5 Medium
Published
Aug 1, 2024
Updated
Nov 3, 2025
Reserved
Jul 19, 2024

Read the record on cve.org

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

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:LCISA-ADP

Weaknesses

  • CWE-94 Improper Control of Generation of Code ('Code Injection')

Affected Products

ProductVersions
CPythonPython Software Foundation
  • before 3.8.20Affected
  • 3.9.0 to before 3.9.20Affected
  • 3.10.0 to before 3.10.15Affected
  • 3.11.0 to before 3.11.10Affected
  • 3.12.0 to before 3.12.5Affected
  • 3.13.0a1 to before 3.13.0rc2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.