CVE-2024-6923: Python Cpython

Medium severity, CVSS 5.5. EPSS: 1.7% probability of exploitation activity in the next 30 days.

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.

What to do

The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.

  • Python Software Foundation Cpython, before 3.8.20: fixed in 3.8.20
  • Python Software Foundation Cpython, from 3.9.0, before 3.9.20: fixed in 3.9.20
  • Python Software Foundation Cpython, from 3.10.0, before 3.10.15: fixed in 3.10.15
  • Python Software Foundation Cpython, from 3.11.0, before 3.11.10: fixed in 3.11.10
  • Python Software Foundation Cpython, from 3.12.0, before 3.12.5: fixed in 3.12.5
  • Python Software Foundation Cpython, from 3.13.0a1, before 3.13.0rc2: fixed in 3.13.0rc2

Affected products

  • Python Cpython: up to and including 3.13.0rc2
  • Python Software Foundation Cpython: before 3.8.20 (fixed in 3.8.20); from 3.9.0, before 3.9.20 (fixed in 3.9.20); from 3.10.0, before 3.10.15 (fixed in 3.10.15); from 3.11.0, before 3.11.10 (fixed in 3.11.10); from 3.12.0, before 3.12.5 (fixed in 3.12.5); from 3.13.0a1, before 3.13.0rc2 (fixed in 3.13.0rc2)

Published 2024-08-01. Last modified 2026-06-17.