Skip to content
Fencer Vulns
medium 5.5

CVE-2024-6923 json

Email header injection due to unquoted newlines

published 2024-08-01 2 y ago modified 2026-06-17 4 mo ago also BIT-libpython-2024-6923 , BIT-python-2024-6923 , BIT-python-min-2024-6923 , EUVD-2024-48020

cvss
5.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.1%
EPSS 1.1% chance of exploitation in 30 days, percentile 65%
public exploits
0
none known

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.

Patch / fix

  • bitnami libpython 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5
  • bitnami python 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5
  • bitnami python-min 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5
  • Python Software Foundation CPython 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5, 3.13.0rc2
  • pypy3 Debian 14, Debian 13 7.3.18+dfsg-1
  • python3.11 Debian 12 3.11.2-6+deb12u5
  • python3.13 Debian 13 3.13.0~rc2-1

debian advisories DEBIAN-CVE-2024-6923

  • python2.7 Ubuntu 20.04 LTS 2.7.18-1~20.04.5
  • python2.7 Ubuntu 22.04 LTS 2.7.18-13ubuntu1.3
  • python3.8 Ubuntu 20.04 LTS 3.8.10-0ubuntu1~20.04.12
  • python3.10 Ubuntu 22.04 LTS 3.10.12-1~22.04.6
  • python3.12 Ubuntu 24.04 LTS 3.12.3-1ubuntu0.2
  • python2.7 Ubuntu Pro 14.04 LTS 2.7.6-8ubuntu0.6+esm21
  • python2.7 Ubuntu Pro 16.04 LTS 2.7.12-1ubuntu0~16.04.18+esm12
  • python2.7 Ubuntu Pro 18.04 LTS 2.7.17-1~18.04ubuntu1.13+esm7

ubuntu advisories UBUNTU-CVE-2024-6923

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • numpy RHEL 8 1.19.4-3.module+el8.9.0+19644+d68f775d
  • scipy RHEL 8 1.5.4-5.module+el8.9.0+19644+d68f775d
  • Cython RHEL 8 0.29.21-5.module+el8.9.0+19644+d68f775d
  • pytest RHEL 8 6.0.2-2.module+el8.9.0+19644+d68f775d
  • PyYAML RHEL 8 5.4.1-1.module+el8.9.0+19644+d68f775d
  • mod_wsgi RHEL 8 4.7.1-7.module+el8.9.0+19644+d68f775d
  • pybind11 RHEL 8 2.7.1-1.module+el8.9.0+19644+d68f775d
  • python39 RHEL 8 3.9.19-7.module+el8.10.0+22237+51382d7a

red hat advisories RHSA-2024:5962RHSA-2024:8103RHSA-2024:7137RHSA-2024:6915RHSA-2024:7415RHSA-2024:6975

  • python311 SLE Module for Python 3 15 SP6, openSUSE Leap 15.6 3.11.9-150600.3.3.1
  • python311-core SLE Module for Python 3 15 SP6, SLE Module for Basesystem 15 SP6, openSUSE Leap 15.6 3.11.9-150600.3.3.1
  • python311-documentation openSUSE Leap 15.6 3.11.9-150600.3.3.1
  • python311 Linux Micro 6.1 3.11.12-slfo.1.1_1.1
  • python311-core Linux Micro 6.1 3.11.12-slfo.1.1_1.1
  • python311 Linux Micro 6.0 3.11.11-1.1
  • python311-core Linux Micro 6.0 3.11.11-1.1
  • python311 Linux Micro 6.0 3.11.8-3.1

suse advisories SUSE-SU-2025:02089-1SUSE-SU-2025:20374-1SUSE-SU-2025:20154-1SUSE-SU-2025:20025-1SUSE-EL-9-CLIENT-TOOLS-2024-4029SUSE-SU-2024:4029-1

  • python315 openSUSE Tumbleweed 3.15.0~a1-1.1
  • python314 openSUSE Tumbleweed 3.14.0~a1-1.1
  • python312 openSUSE Tumbleweed 3.12.5-1.1
  • python310 openSUSE Tumbleweed 3.10.14-6.1
  • python311 openSUSE Tumbleweed 3.11.9-6.1
  • python38 openSUSE Tumbleweed 3.8.19-7.1
  • python39 openSUSE Tumbleweed 3.9.19-6.1
  • python313 openSUSE Tumbleweed 3.13.0~rc1-1.1

opensuse advisories openSUSE-SU-2025:15713-1openSUSE-SU-2024:14434-1openSUSE-SU-2024:14295-1openSUSE-SU-2024:14254-1openSUSE-SU-2024:14255-1openSUSE-SU-2024:14256-1

  • python3.12 AlmaLinux 8 3.12.5-2.el8_10
  • python3.12-idle AlmaLinux 8 3.12.5-2.el8_10
  • python3.12-libs AlmaLinux 8 3.12.5-2.el8_10
  • python3.12-test AlmaLinux 8 3.12.5-2.el8_10
  • python3.12-tkinter AlmaLinux 8 3.12.5-2.el8_10
  • python3.12-rpm-macros AlmaLinux 8 3.12.5-2.el8_10
  • python3.11 AlmaLinux 8 3.11.9-7.el8_10
  • python3.11-idle AlmaLinux 8 3.11.9-7.el8_10

almalinux advisories ALSA-2024:6961ALSA-2024:6962ALSA-2024:6975ALSA-2024:6146ALSA-2024:6163ALSA-2024:6179

  • numpy Rocky Linux 8 1.19.4-3.module+el8.10.0+1582+bc278001
  • numpy Rocky Linux 8 1.19.4-3.module+el8.10.0+1860+afcc1c71
  • scipy Rocky Linux 8 1.5.4-5.module+el8.10.0+1582+bc278001
  • scipy Rocky Linux 8 1.5.4-5.module+el8.10.0+1860+afcc1c71
  • Cython Rocky Linux 8 0.29.21-5.module+el8.10.0+1860+afcc1c71
  • Cython Rocky Linux 8 0.29.21-5.module+el8.10.0+1582+bc278001
  • pytest Rocky Linux 8 6.0.2-2.module+el8.10.0+1582+bc278001
  • pytest Rocky Linux 8 6.0.2-2.module+el8.10.0+1860+afcc1c71

rocky linux advisories RLSA-2024:5962RLSA-2024:6961RLSA-2024:6962RLSA-2024:6975RLSA-2024:6146

  • python3 Alpine 3.17 3.10.15-r0
  • python3 Alpine 3.19, Alpine 3.18 3.11.10-r0
  • python3 Alpine 3.20 3.12.6-r0
  • python3 Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 3.12.5-r0

alpine advisories ALPINE-CVE-2024-6923

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • python3 CBL-Mariner 2.0 3.9.19-8
  • python3 Azure Linux 3.0 3.12.3-3
  • tensorflow Azure Linux 3.0 2.16.1-9

azure linux advisories AZL-47346AZL-47367AZL-47385

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-6923 updated cvss 6.8

cpython: python: email module doesn't properly quotes newlines in email headers, allowing header injection

  • Red Hat Enterprise Linux 6 python, tkinter, python-libs, python-test, python-tools Red Hat Enterprise Linux 7 python, python3, tkinter, python-libs, python-test, python-tools, +4 more Red Hat Enterprise Linux 8 python2, python2-libs, python2-test, python2-tools, python2-tkinter
    affected: workaround, no fix planned “Will not fix”
  • Red Hat CodeReady Linux Builder EUS (v.9.2) python3 3.9.16-1.el9_2.8, python3.11 3.11.2-2.el9_2.6, python3-idle 3.9.16-1.el9_2.8, python3-test 3.9.16-1.el9_2.8, python3-tkinter 3.9.16-1.el9_2.8, python3.11-idle 3.11.2-2.el9_2.6, +2 more
    fixed: vendor fix RHSA-2024:6909
  • Red Hat Enterprise Linux AppStream (v. 8) python3.11 3.11.9-7.el8_10, python3.12 3.12.5-2.el8_10, python3-idle 3.6.8-67.el8_10, python3-test 3.6.8-67.el8_10, platform-python 3.6.8-67.el8_10, python3-tkinter 3.6.8-67.el8_10, +61 more
    fixed: vendor fix RHSA-2024:5962
  • Red Hat Enterprise Linux AppStream (v. 9) python3.11 3.11.7-1.el9_4.5, python3.12 3.12.1-4.el9_4.3, python3-tkinter 3.9.18-3.el9_4.5, python3.11-libs 3.11.7-1.el9_4.5, python3.12-libs 3.12.1-4.el9_4.3, python3.11-tkinter 3.11.7-1.el9_4.5, +2 more
    fixed: vendor fix RHSA-2024:6163
  • Red Hat Enterprise Linux AppStream AUS (v.8.4) scipy 1.5.4-3.module+el8.4.0+9822+20bf1249, PyYAML 5.4.1-1.module+el8.4.0+10484+27ce8e03, mod_wsgi 4.7.1-4.module+el8.4.0+9822+20bf1249, numpy 1.19.4-2.module+el8.4.0+15042+dc5a279b.1, python-idna 2.10-3.module+el8.4.0+9822+20bf1249, python-ply 3.11-10.module+el8.4.0+9822+20bf1249, +49 more
    fixed: vendor fix RHSA-2024:7137
  • Red Hat Enterprise Linux AppStream AUS (v.8.6) scipy 1.5.4-3.module+el8.4.0+9822+20bf1249, numpy 1.19.4-3.module+el8.5.0+12204+54860423, PyYAML 5.4.1-1.module+el8.5.0+10613+59a13ec4, mod_wsgi 4.7.1-4.module+el8.4.0+9822+20bf1249, python-idna 2.10-3.module+el8.4.0+9822+20bf1249, python-ply 3.11-10.module+el8.4.0+9822+20bf1249, +49 more
    fixed: vendor fix RHSA-2024:6915
  • Red Hat Enterprise Linux AppStream E4S (v.8.4) scipy 1.5.4-3.module+el8.4.0+9822+20bf1249, PyYAML 5.4.1-1.module+el8.4.0+10484+27ce8e03, mod_wsgi 4.7.1-4.module+el8.4.0+9822+20bf1249, numpy 1.19.4-2.module+el8.4.0+15042+dc5a279b.1, python-idna 2.10-3.module+el8.4.0+9822+20bf1249, python-ply 3.11-10.module+el8.4.0+9822+20bf1249, +49 more
    fixed: vendor fix RHSA-2024:7137
  • Red Hat Enterprise Linux AppStream E4S (v.8.6) scipy 1.5.4-3.module+el8.4.0+9822+20bf1249, numpy 1.19.4-3.module+el8.5.0+12204+54860423, PyYAML 5.4.1-1.module+el8.5.0+10613+59a13ec4, mod_wsgi 4.7.1-4.module+el8.4.0+9822+20bf1249, python-idna 2.10-3.module+el8.4.0+9822+20bf1249, python-ply 3.11-10.module+el8.4.0+9822+20bf1249, +49 more
    fixed: vendor fix RHSA-2024:6915
show 13 more
  • Red Hat Enterprise Linux AppStream EUS (v.8.8) scipy 1.5.4-3.module+el8.4.0+9822+20bf1249, numpy 1.19.4-3.module+el8.5.0+12204+54860423, PyYAML 5.4.1-1.module+el8.5.0+10613+59a13ec4, mod_wsgi 4.7.1-5.module+el8.7.0+16654+645aad7f, python-idna 2.10-3.module+el8.4.0+9822+20bf1249, python-ply 3.11-10.module+el8.4.0+9822+20bf1249, +49 more
    fixed: vendor fix RHSA-2024:8103
  • Red Hat Enterprise Linux AppStream EUS (v.9.2) python3.11 3.11.2-2.el9_2.6, python3-tkinter 3.9.16-1.el9_2.8, python3.11-libs 3.11.2-2.el9_2.6, python3.11-tkinter 3.11.2-2.el9_2.6, python-unversioned-command 3.9.16-1.el9_2.8
    fixed: vendor fix RHSA-2024:6909
  • Red Hat Enterprise Linux AppStream TUS (v.8.4) scipy 1.5.4-3.module+el8.4.0+9822+20bf1249, PyYAML 5.4.1-1.module+el8.4.0+10484+27ce8e03, mod_wsgi 4.7.1-4.module+el8.4.0+9822+20bf1249, numpy 1.19.4-2.module+el8.4.0+15042+dc5a279b.1, python-idna 2.10-3.module+el8.4.0+9822+20bf1249, python-ply 3.11-10.module+el8.4.0+9822+20bf1249, +49 more
    fixed: vendor fix RHSA-2024:7137
  • Red Hat Enterprise Linux AppStream TUS (v.8.6) scipy 1.5.4-3.module+el8.4.0+9822+20bf1249, numpy 1.19.4-3.module+el8.5.0+12204+54860423, PyYAML 5.4.1-1.module+el8.5.0+10613+59a13ec4, mod_wsgi 4.7.1-4.module+el8.4.0+9822+20bf1249, python-idna 2.10-3.module+el8.4.0+9822+20bf1249, python-ply 3.11-10.module+el8.4.0+9822+20bf1249, +49 more
    fixed: vendor fix RHSA-2024:6915
  • Red Hat Enterprise Linux BaseOS (v. 8) python3 3.6.8-67.el8_10, python3-libs 3.6.8-67.el8_10, python3-test 3.6.8-67.el8_10, platform-python 3.6.8-67.el8_10
    fixed: vendor fix RHSA-2024:6975
  • Red Hat Enterprise Linux BaseOS (v. 9) python3 3.9.18-3.el9_4.5, python3.9 3.9.18-3.el9_4.5, python3-libs 3.9.18-3.el9_4.5
    fixed: vendor fix RHSA-2024:6163
  • Red Hat Enterprise Linux BaseOS EUS (v.9.2) python3 3.9.16-1.el9_2.8, python3.9 3.9.16-1.el9_2.8, python3-libs 3.9.16-1.el9_2.8
    fixed: vendor fix RHSA-2024:6909
  • Red Hat Enterprise Linux CRB (v. 8) python3.11 3.11.9-7.el8_10, python3.12 3.12.5-2.el8_10, python3.11-idle 3.11.9-7.el8_10, python3.11-test 3.11.9-7.el8_10, python3.12-idle 3.12.5-2.el8_10, python3.12-test 3.12.5-2.el8_10, +24 more
    fixed: vendor fix RHSA-2024:5962
  • Red Hat Enterprise Linux CRB (v. 9) python3 3.9.18-3.el9_4.5, python3.11 3.11.7-1.el9_4.5, python3.12 3.12.1-4.el9_4.3, python3-idle 3.9.18-3.el9_4.5, python3-test 3.9.18-3.el9_4.5, python3-tkinter 3.9.18-3.el9_4.5, +6 more
    fixed: vendor fix RHSA-2024:6163
  • Red Hat OpenShift AI 8 rhoai/odh-rhel8-operator v2.13.1-2, rhoai/odh-dashboard-rhel8 v2.13.1-1, rhoai/odh-modelmesh-rhel8 v2.13.1-1, rhoai/odh-operator-bundle v2.13.1-2, rhoai/odh-rhel8-operator v2.14.0-24, rhoai/odh-dashboard-rhel8 v2.14.0-11, +56 more
    fixed: vendor fix RHBA-2024:8413
  • Red Hat Service Interconnect 1 service-interconnect/skupper-router-rhel9 2.5.3-5, service-interconnect/skupper-router-rhel9 2.5.3-6, service-interconnect/skupper-operator-bundle 1.5.5-3, service-interconnect/skupper-operator-bundle 1.5.5-4, service-interconnect/skupper-config-sync-rhel9 1.5.5-3, service-interconnect/skupper-config-sync-rhel9 1.5.5-4, +10 more
    fixed: vendor fix RHSA-2024:11109
  • Red Hat Service Interconnect 1.4 service-interconnect/skupper-router-rhel9 2.4.3-6, service-interconnect/skupper-router-rhel9 2.4.3-7, service-interconnect/skupper-operator-bundle 1.4.7-2, service-interconnect/skupper-operator-bundle 1.4.7-4, service-interconnect/skupper-config-sync-rhel9 1.4.7-2, service-interconnect/skupper-config-sync-rhel9 1.4.7-3, +6 more
    fixed: vendor fix RHSA-2024:7213
  • Red Hat Enterprise Linux 8 scipy, python36, python-nose, python-wheel, python3-bson, python3-nose, +19 more Red Hat Enterprise Linux 10 python3.12
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
total
Assessed
2 y ago

Exploit prediction

1.10% chance of exploitation in the next 30 days, higher than 65% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 5.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
CNA 3.1 5.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
OSV 3.1 5.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L

Affected packages

ecosystem package affected fixed in
bitnami libpython
<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.8.20
3.9.20
3.10.15
3.11.10
3.12.5
bitnami python
<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.8.20
3.9.20
3.10.15
3.11.10
3.12.5
bitnami python-min
<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.8.20
3.9.20
3.10.15
3.11.10
3.12.5

Affected products

  • Python Software Foundation CPython
  • python cpython

Classification

Weakness
  • CWE-94 Improper Control of Generation of Code

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.