{"answers":{"affected":"3 open source packages ship an affected version, including libpython, python and python-min.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6923 exists.","fix":"Upgrade libpython to a fixed version for your release line: 3.8.20, 3.9.20, 3.10.15 or 3.11.10.","what":"CVE-2024-6923 is a medium-severity code injection vulnerability in CPython, published on 1 Aug 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-6923 and fix it if it is affected.\n\nWhat it is: CVE-2024-6923 is a medium-severity code injection vulnerability in CPython, published on 1 Aug 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6923 exists.\n\nAffected packages and fixed versions:\n- libpython (Bitnami): affected all versions; fixed in 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5\n- python (Bitnami): affected all versions; fixed in 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5\n- python-min (Bitnami): affected all versions; fixed in 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-6923/ (Markdown: https://insights.sbomify.com/CVE-2024-6923/index.md)","id":"CVE-2024-6923","markdown":"https://insights.sbomify.com/CVE-2024-6923/index.md","name":"CVE-2024-6923","record":{"aliases":["ALPINE-CVE-2024-6923","ALSA-2024:6146","ALSA-2024:6163","ALSA-2024:6179","AZL-47346","AZL-47367","AZL-47385","BELL-CVE-2024-6923","BIT-libpython-2024-6923","BIT-python-2024-6923","BIT-python-min-2024-6923","CLEANSTART-2026-BM92206","CLSA-2024-1726058763","CLSA-2024-1726058773","CLSA-2024-1726059010","CLSA-2024-1734643101","CLSA-2024-1734643401","CLSA-2024-1734705832","DEBIAN-CVE-2024-6923","GHSA-87qc-q3w7-7m8w","PSF-2024-8","RHSA-2024:6146","RHSA-2024:6179","RHSA-2024:7137","RHSA-2024:8103","RLSA-2024:6146","SUSE-SU-2024:2974-1","SUSE-SU-2024:3200-1","SUSE-SU-2024:3294-1","UBUNTU-CVE-2024-6923","openSUSE-SU-2024:14249-1","openSUSE-SU-2024:14254-1","openSUSE-SU-2024:14255-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_modify","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Python email module","requires_auth":"low_privilege","summary":"Attackers can inject arbitrary headers into emails by exploiting improper newline quoting in the Python email module during serialization.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PSF","cpe":[],"cvss":{"score":5.5,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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.","ecosystems":["AlmaLinux:9","Bitnami","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::crb","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_e4s:8.4::appstream","Red Hat:rhel_eus:8.8::appstream","Red Hat:rhel_tus:8.4::appstream","Rocky Linux:9","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise Module for Public Cloud 15 SP4","SUSE:Linux Enterprise Module for Python 3 15 SP5","SUSE:Linux Enterprise Module for Web and Scripting 12","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Software Development Kit 12 SP5","openSUSE:Leap 15.5","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Email header injection due to unquoted newlines","id":"CVE-2024-6923","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":401,"n_references":10,"next":{"headline":"TrueBooker \u003c 1.0.3 - Multiple Unauthenticated SQLi","id":"CVE-2024-6924"},"packages":[{"ecosystem":"Bitnami","fixed":["3.8.20","3.9.20","3.10.15","3.11.10","3.12.5"],"introduced":["0","3.9.0","3.10.0","3.11.0","3.12.0"],"last_affected":[],"package":"libpython","purl":"pkg:bitnami/libpython","source":"BIT-libpython-2024-6923"},{"ecosystem":"Bitnami","fixed":["3.8.20","3.9.20","3.10.15","3.11.10","3.12.5"],"introduced":["0","3.9.0","3.10.0","3.11.0","3.12.0"],"last_affected":[],"package":"python","purl":"pkg:bitnami/python","source":"BIT-python-2024-6923"},{"ecosystem":"Bitnami","fixed":["3.8.20","3.9.20","3.10.15","3.11.10","3.12.5"],"introduced":["0","3.9.0","3.10.0","3.11.0","3.12.0"],"last_affected":[],"package":"python-min","purl":"pkg:bitnami/python-min","source":"BIT-python-min-2024-6923"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.18-3.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python-unversioned-command","purl":"pkg:rpm/almalinux/python-unversioned-command","source":"ALSA-2024:6163"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.18-3.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3","purl":"pkg:rpm/almalinux/python3","source":"ALSA-2024:6163"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.18-3.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3-debug","purl":"pkg:rpm/almalinux/python3-debug","source":"ALSA-2024:6163"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.18-3.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3-devel","purl":"pkg:rpm/almalinux/python3-devel","source":"ALSA-2024:6163"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.18-3.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3-idle","purl":"pkg:rpm/almalinux/python3-idle","source":"ALSA-2024:6163"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.18-3.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3-libs","purl":"pkg:rpm/almalinux/python3-libs","source":"ALSA-2024:6163"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.18-3.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3-test","purl":"pkg:rpm/almalinux/python3-test","source":"ALSA-2024:6163"},{"ecosystem":"AlmaLinux:9","fixed":["3.9.18-3.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3-tkinter","purl":"pkg:rpm/almalinux/python3-tkinter","source":"ALSA-2024:6163"},{"ecosystem":"AlmaLinux:9","fixed":["3.11.7-1.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3.11","purl":"pkg:rpm/almalinux/python3.11","source":"ALSA-2024:6179"},{"ecosystem":"AlmaLinux:9","fixed":["3.11.7-1.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3.11-debug","purl":"pkg:rpm/almalinux/python3.11-debug","source":"ALSA-2024:6179"},{"ecosystem":"AlmaLinux:9","fixed":["3.11.7-1.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3.11-devel","purl":"pkg:rpm/almalinux/python3.11-devel","source":"ALSA-2024:6179"},{"ecosystem":"AlmaLinux:9","fixed":["3.11.7-1.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3.11-idle","purl":"pkg:rpm/almalinux/python3.11-idle","source":"ALSA-2024:6179"},{"ecosystem":"AlmaLinux:9","fixed":["3.11.7-1.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3.11-libs","purl":"pkg:rpm/almalinux/python3.11-libs","source":"ALSA-2024:6179"},{"ecosystem":"AlmaLinux:9","fixed":["3.11.7-1.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3.11-test","purl":"pkg:rpm/almalinux/python3.11-test","source":"ALSA-2024:6179"},{"ecosystem":"AlmaLinux:9","fixed":["3.11.7-1.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3.11-tkinter","purl":"pkg:rpm/almalinux/python3.11-tkinter","source":"ALSA-2024:6179"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.1-4.el9_4.3"],"introduced":["0"],"last_affected":[],"package":"python3.12","purl":"pkg:rpm/almalinux/python3.12","source":"ALSA-2024:6146"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.1-4.el9_4.3"],"introduced":["0"],"last_affected":[],"package":"python3.12-debug","purl":"pkg:rpm/almalinux/python3.12-debug","source":"ALSA-2024:6146"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.1-4.el9_4.3"],"introduced":["0"],"last_affected":[],"package":"python3.12-devel","purl":"pkg:rpm/almalinux/python3.12-devel","source":"ALSA-2024:6146"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.1-4.el9_4.3"],"introduced":["0"],"last_affected":[],"package":"python3.12-idle","purl":"pkg:rpm/almalinux/python3.12-idle","source":"ALSA-2024:6146"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.1-4.el9_4.3"],"introduced":["0"],"last_affected":[],"package":"python3.12-libs","purl":"pkg:rpm/almalinux/python3.12-libs","source":"ALSA-2024:6146"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.1-4.el9_4.3"],"introduced":["0"],"last_affected":[],"package":"python3.12-test","purl":"pkg:rpm/almalinux/python3.12-test","source":"ALSA-2024:6146"},{"ecosystem":"AlmaLinux:9","fixed":["3.12.1-4.el9_4.3"],"introduced":["0"],"last_affected":[],"package":"python3.12-tkinter","purl":"pkg:rpm/almalinux/python3.12-tkinter","source":"ALSA-2024:6146"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.11.7-1.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3.11","purl":"pkg:rpm/redhat/python3.11","source":"RHSA-2024:6179"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.11.7-1.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3.11-debuginfo","purl":"pkg:rpm/redhat/python3.11-debuginfo","source":"RHSA-2024:6179"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.11.7-1.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3.11-debugsource","purl":"pkg:rpm/redhat/python3.11-debugsource","source":"RHSA-2024:6179"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.11.7-1.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3.11-devel","purl":"pkg:rpm/redhat/python3.11-devel","source":"RHSA-2024:6179"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.11.7-1.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3.11-libs","purl":"pkg:rpm/redhat/python3.11-libs","source":"RHSA-2024:6179"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.11.7-1.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3.11-tkinter","purl":"pkg:rpm/redhat/python3.11-tkinter","source":"RHSA-2024:6179"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.12.1-4.el9_4.3"],"introduced":["0"],"last_affected":[],"package":"python3.12","purl":"pkg:rpm/redhat/python3.12","source":"RHSA-2024:6146"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.12.1-4.el9_4.3"],"introduced":["0"],"last_affected":[],"package":"python3.12-debuginfo","purl":"pkg:rpm/redhat/python3.12-debuginfo","source":"RHSA-2024:6146"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.12.1-4.el9_4.3"],"introduced":["0"],"last_affected":[],"package":"python3.12-debugsource","purl":"pkg:rpm/redhat/python3.12-debugsource","source":"RHSA-2024:6146"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.12.1-4.el9_4.3"],"introduced":["0"],"last_affected":[],"package":"python3.12-devel","purl":"pkg:rpm/redhat/python3.12-devel","source":"RHSA-2024:6146"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.12.1-4.el9_4.3"],"introduced":["0"],"last_affected":[],"package":"python3.12-libs","purl":"pkg:rpm/redhat/python3.12-libs","source":"RHSA-2024:6146"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:3.12.1-4.el9_4.3"],"introduced":["0"],"last_affected":[],"package":"python3.12-tkinter","purl":"pkg:rpm/redhat/python3.12-tkinter","source":"RHSA-2024:6146"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.11.7-1.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3.11","purl":"pkg:rpm/redhat/python3.11","source":"RHSA-2024:6179"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.11.7-1.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3.11-debug","purl":"pkg:rpm/redhat/python3.11-debug","source":"RHSA-2024:6179"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:3.11.7-1.el9_4.5"],"introduced":["0"],"last_affected":[],"package":"python3.11-debuginfo","purl":"pkg:rpm/redhat/python3.11-debuginfo","source":"RHSA-2024:6179"}],"prev":{"headline":"Server-Side Request Forgery in Automation 360","id":"CVE-2024-6922"},"products":["CPython"],"published":"2024-08-01","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["Python Software Foundation"]},"summary":"Attackers can inject arbitrary headers into emails by exploiting improper newline quoting in the Python email module during serialization.","url":"https://insights.sbomify.com/CVE-2024-6923/"}