Skip to main content
← All vulnerabilities
CVE-2024-6923

Email header injection due to unquoted newlines

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5, and 1 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • Python Software Foundation CPython

    fixed in 3.8.20; From 3.9.0 · fixed in 3.9.20; From 3.10.0 · fixed in 3.10.15; From 3.11.0 · fixed in 3.11.10; From 3.12.0 · fixed in 3.12.5; From 3.13.0a1 · fixed in 3.13.0rc2

References 10

GitHub · python/cpython

mail.python.org