{"id":"CVE-2024-6923","state":"PUBLISHED","title":"Email header injection due to unquoted newlines","description":"There is a MEDIUM severity vulnerability affecting CPython.\n\nThe \nemail module didn’t properly quote newlines for email headers when \nserializing an email message allowing for header injection when an email\n is serialized.","publishedAt":"2024-08-01T13:40:11.069Z","updatedAt":"2025-11-03T22:32:47.018Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","source":"CISA-ADP"},"assigner":"PSF","products":["Python Software Foundation CPython"],"affected":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.8.20","versionType":"python"},{"version":"3.9.0","status":"affected","lessThan":"3.9.20","versionType":"python"},{"version":"3.10.0","status":"affected","lessThan":"3.10.15","versionType":"python"},{"version":"3.11.0","status":"affected","lessThan":"3.11.10","versionType":"python"},{"version":"3.12.0","status":"affected","lessThan":"3.12.5","versionType":"python"},{"version":"3.13.0a1","status":"affected","lessThan":"3.13.0rc2","versionType":"python"}],"modules":["email"]}],"references":["https://github.com/python/cpython/pull/122233","https://github.com/python/cpython/issues/121650","https://mail.python.org/archives/list/security-announce@python.org/thread/QH3BUOE2DYQBWP7NAQ7UNHPPOELKISRW/","https://github.com/python/cpython/commit/4766d1200fdf8b6728137aa2927a297e224d5fa7","https://github.com/python/cpython/commit/4aaa4259b5a6e664b7316a4d60bdec7ee0f124d0","https://github.com/python/cpython/commit/06f28dc236708f72871c64d4bc4b4ea144c50147","https://github.com/python/cpython/commit/b158a76ce094897c870fb6b3de62887b7ccc33f1","https://github.com/python/cpython/commit/f7be505d137a22528cb0fc004422c0081d5d90e6","https://github.com/python/cpython/commit/f7c0f09e69e950cf3c5ada9dbde93898eb975533","https://github.com/python/cpython/commit/097633981879b3c9de9a1dd120d3aa585ecc2384","http://www.openwall.com/lists/oss-security/2024/08/01/3","http://www.openwall.com/lists/oss-security/2024/08/02/2","https://security.netapp.com/advisory/ntap-20240926-0003/","https://lists.debian.org/debian-lts-announce/2025/01/msg00005.html","https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:08:12.933Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/6xxx/CVE-2024-6923.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-6923","state":"PUBLISHED","datePublished":"2024-08-01T13:40:11.069Z","dateUpdated":"2025-11-03T22:32:47.018Z","assignerShortName":"PSF","assignerOrgId":"28c92f92-d60d-412d-b760-e73465c3df22","dateReserved":"2024-07-19T15:32:46.458Z"},"containers":{"cna":{"title":"Email header injection due to unquoted newlines","descriptions":[{"lang":"en","value":"There is a MEDIUM severity vulnerability affecting CPython.\n\nThe \nemail module didn’t properly quote newlines for email headers when \nserializing an email message allowing for header injection when an email\n is serialized."}],"affected":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.8.20","versionType":"python"},{"version":"3.9.0","status":"affected","lessThan":"3.9.20","versionType":"python"},{"version":"3.10.0","status":"affected","lessThan":"3.10.15","versionType":"python"},{"version":"3.11.0","status":"affected","lessThan":"3.11.10","versionType":"python"},{"version":"3.12.0","status":"affected","lessThan":"3.12.5","versionType":"python"},{"version":"3.13.0a1","status":"affected","lessThan":"3.13.0rc2","versionType":"python"}],"modules":["email"]}],"references":[{"url":"https://github.com/python/cpython/pull/122233","tags":["patch"]},{"url":"https://github.com/python/cpython/issues/121650","tags":["issue-tracking"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/QH3BUOE2DYQBWP7NAQ7UNHPPOELKISRW/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/commit/4766d1200fdf8b6728137aa2927a297e224d5fa7","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/4aaa4259b5a6e664b7316a4d60bdec7ee0f124d0","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/06f28dc236708f72871c64d4bc4b4ea144c50147","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/b158a76ce094897c870fb6b3de62887b7ccc33f1","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/f7be505d137a22528cb0fc004422c0081d5d90e6","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/f7c0f09e69e950cf3c5ada9dbde93898eb975533","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/097633981879b3c9de9a1dd120d3aa585ecc2384","tags":["patch"]}],"providerMetadata":{"shortName":"PSF","orgId":"28c92f92-d60d-412d-b760-e73465c3df22","dateUpdated":"2025-01-31T19:55:06.174Z"},"credits":[{"lang":"en","type":"remediation developer","value":"Petr Viktorin"},{"lang":"en","type":"coordinator","value":"Seth Larson"},{"lang":"en","type":"reporter","value":"John Whitlock"},{"lang":"en","type":"remediation developer","value":"Bas Bloemsaat"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"python","product":"cpython","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThanOrEqual":"3.13.0rc2","versionType":"python"}],"cpes":["cpe:2.3:a:python:cpython:*:*:*:*:*:*:*:*"]}],"metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","integrityImpact":"LOW","userInteraction":"REQUIRED","attackComplexity":"LOW","availabilityImpact":"LOW","privilegesRequired":"LOW","confidentialityImpact":"LOW"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-08-01T18:15:02.857863Z","id":"CVE-2024-6923","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","type":"CWE","lang":"en","description":"CWE-94 Improper Control of Generation of Code ('Code Injection')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-01T18:18:12.965Z"}},{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2024/08/01/3"},{"url":"http://www.openwall.com/lists/oss-security/2024/08/02/2"},{"url":"https://security.netapp.com/advisory/ntap-20240926-0003/"},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00005.html"},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T22:32:47.018Z"}}]}}}