# CVE-2024-6923: Email header injection due to unquoted newlines

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.10%, higher than 66% of CVEs (2026-12-01)
- Published: 2024-08-01T13:40:11.069Z
- Modified: 2026-06-17T08:18:59.170Z
- Also known as: PSF-2024-8, BIT-LIBPYTHON-2024-6923, BIT-PYTHON-2024-6923, BIT-PYTHON-MIN-2024-6923
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: PSF

## 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.

(As written by CVE List.)

## Affected

- Python Software Foundation CPython: before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.5; from 3.13.0a1 before 3.13.0rc2
- python cpython: up to 3.13.0rc2
- https://github.com/python/cpython: before 4766d1200fdf8b6728137aa2927a297e224d5fa7; before 4aaa4259b5a6e664b7316a4d60bdec7ee0f124d0; before 06f28dc236708f72871c64d4bc4b4ea144c50147; before b158a76ce094897c870fb6b3de62887b7ccc33f1; before f7be505d137a22528cb0fc004422c0081d5d90e6; before f7c0f09e69e950cf3c5ada9dbde93898eb975533; before 097633981879b3c9de9a1dd120d3aa585ecc2384
- libpython (Bitnami): before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.5
- python (Bitnami): before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.5
- python-min (Bitnami): before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.5

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/python/cpython/pull/122233> (patch, web)
- <https://github.com/python/cpython/issues/121650> (issue-tracking, report, web)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/QH3BUOE2DYQBWP7NAQ7UNHPPOELKISRW/> (advisory, vendor-advisory, web)
- <https://github.com/python/cpython/commit/4766d1200fdf8b6728137aa2927a297e224d5fa7> (fix, patch, web)
- <https://github.com/python/cpython/commit/4aaa4259b5a6e664b7316a4d60bdec7ee0f124d0> (fix, patch, web)
- <https://github.com/python/cpython/commit/06f28dc236708f72871c64d4bc4b4ea144c50147> (fix, patch, web)
- <https://github.com/python/cpython/commit/b158a76ce094897c870fb6b3de62887b7ccc33f1> (fix, patch, web)
- <https://github.com/python/cpython/commit/f7be505d137a22528cb0fc004422c0081d5d90e6> (fix, patch, web)
- <https://github.com/python/cpython/commit/f7c0f09e69e950cf3c5ada9dbde93898eb975533> (fix, patch, web)
- <https://github.com/python/cpython/commit/097633981879b3c9de9a1dd120d3aa585ecc2384> (fix, patch, web)
- <http://www.openwall.com/lists/oss-security/2024/08/01/3> (web)
- <http://www.openwall.com/lists/oss-security/2024/08/02/2> (web)
- <https://security.netapp.com/advisory/ntap-20240926-0003/> (web)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00005.html> (web)
- <https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6923> (web)

## Sources

- CVE List: [CVE-2024-6923](https://www.cve.org/CVERecord?id=CVE-2024-6923), CVE Terms of Use, modified 2025-11-03
- Python Software Foundation: [PSF-2024-8](https://osv.dev/vulnerability/PSF-2024-8), CC-BY-4.0, modified 2025-10-09
- NVD: [CVE-2024-6923](https://nvd.nist.gov/vuln/detail/CVE-2024-6923), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2024-6923](https://osv.dev/vulnerability/BIT-LIBPYTHON-2024-6923), Apache-2.0, modified 2025-11-06
- Bitnami Vulnerability Database: [BIT-PYTHON-2024-6923](https://osv.dev/vulnerability/BIT-PYTHON-2024-6923), Apache-2.0, modified 2025-11-06
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2024-6923](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2024-6923), Apache-2.0, modified 2025-11-06

---

Page: https://cve.day/CVE-2024-6923 · Whole record: https://cve.day/CVE-2024-6923.json · Rebuilt by cve.day 2026-11-25T22:58:43.505Z
