CVE-2024-6923: Email header injection due to unquoted newlines
Vulnerability summary
CVE-2024-6923 is a medium (CVSS 5.5) Improper Control of Generation of Code vulnerability in python software foundation cpython. EPSS estimates a 1.10% chance of exploitation in the next 30 days, higher than 65.7% of scored vulnerabilities.
Not severe (CVSS 5.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 31 · Related 26Timeline
- 01-08-2024PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 8 sources · 1 version- OSV · AlpineEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
- OSV · Red hatEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
- OSV · WolfiEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
- OSV · ChainguardEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
- NVDNIST5.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
EPSS trend
Probability
1.10%
Chance of exploitation in the next 30 days
Percentile
66%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.10% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat94 products
- mod_wsgi< 0:4.7.1-4.module+el8.4.0+9822+20bf1249 | < 0:4.7.1-5.module+el8.7.0+16654+645aad7f
- numpy< 0:1.19.4-2.module+el8.4.0+15042+dc5a279b.1 | < 0:1.19.4-3.module+el8.5.0+12204+54860423
- numpy-debugsource< 0:1.19.4-2.module+el8.4.0+15042+dc5a279b.1 | < 0:1.19.4-3.module+el8.5.0+12204+54860423
- python-cffi< 0:1.14.3-2.module+el8.4.0+9822+20bf1249
- python-cffi-debugsource< 0:1.14.3-2.module+el8.4.0+9822+20bf1249
Suse33 products
- python3-base&distro=SUSE Linux Enterprise Module for Web and Scripting 12< 3.4.10-25.136.1
- python3-base&distro=SUSE Linux Enterprise Server 12 SP5< 3.4.10-25.136.1
- python3-base&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5< 3.4.10-25.136.1
- python3-base&distro=SUSE Linux Enterprise Software Development Kit 12 SP5< 3.4.10-25.136.1
- python310-core&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 3.10.14-150400.4.54.1
Opensuse12 products
- python310-core&distro=openSUSE Leap 15.5< 3.10.14-150400.4.54.1
- python310-core&distro=openSUSE Leap 15.6< 3.10.14-150400.4.54.1
- python310-documentation&distro=openSUSE Leap 15.5< 3.10.14-150400.4.54.1
- python310-documentation&distro=openSUSE Leap 15.6< 3.10.14-150400.4.54.1
- python310&distro=openSUSE Leap 15.5< 3.10.14-150400.4.54.1
Ubuntu10 products
- python2.7< 2.7.6-8ubuntu0.6+esm21 | < 2.7.12-1ubuntu0~16.04.18+esm12 | < 2.7.17-1~18.04ubuntu1.13+esm7 | < 2.7.18-1~20.04.5 | < 2.7.18-13ubuntu1.3
- python3.10< 3.10.12-1~22.04.6
- python3.11All versions (No fix recorded)
- python3.12< 3.12.3-1ubuntu0.2
- python3.4All versions (No fix recorded)
Chainguard7 products
- nodejs-18< 18.20.8-r4
- nodejs-20< 20.19.5-r0
- nodejs-22< 22.21.1-r0 | < 22.21.1-r1
- python-3.10< 3.10.15-r0
- python-3.11< 3.11.10-r0
Wolfi6 products
- nodejs-18< 18.20.8-r4
- nodejs-20< 20.19.5-r0
- nodejs-22< 22.21.1-r0 | < 22.21.1-r1
- python-3.10< 3.10.15-r0
- python-3.11< 3.11.10-r0
Debian3 products
- pypy3All versions (No fix recorded) | < 7.3.18+dfsg-1
- python3.11< 3.11.2-6+deb12u5
- python3.13< 3.13.0~rc2-1
Alpine1 product
- python3< 3.10.15-r0 | < 3.11.10-r0 | < 3.12.6-r0 | < 3.12.5-r0
Python software foundation1 product
- cpython< 3.8.20 | ≥ 3.9.0, < 3.9.20 | ≥ 3.10.0, < 3.10.15 | ≥ 3.11.0, < 3.11.10 | ≥ 3.12.0, < 3.12.5 | ≥ 3.13.0a1, < 3.13.0rc2
9 vendors · 167 products
References
42 links- mail.python.org/archives/list/security-announce@python.org/thread/QH3BUOE2DYQBWP7NAQ7UNHPPOELKISRW/Vendor AdvisoryARTICLEREPORTAdvisory