{"answers":{"affected":"3 open source packages ship an affected version, including libpython, python and python-min.","exploited":"There is no known exploitation of CVE-2026-11940 in the wild and no public exploit code.","fix":"Upgrade libpython to a fixed version for your release line: 3.10.21, 3.11.16, 3.12.14 or 3.13.15.","what":"CVE-2026-11940 is a high-severity path traversal vulnerability in CPython, published on 23 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-11940 and fix it if it is affected.\n\nWhat it is: CVE-2026-11940 is a high-severity path traversal vulnerability in CPython, published on 23 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-11940 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- libpython (Bitnami): affected all versions; fixed in 3.10.21, 3.11.16, 3.12.14, 3.13.15, 3.14.7\n- python (Bitnami): affected all versions; fixed in 3.10.21, 3.11.16, 3.12.14, 3.13.15, 3.14.7\n- python-min (Bitnami): affected all versions; fixed in 3.10.21, 3.11.16, 3.12.14, 3.13.15, 3.14.7\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-2026-11940/ (Markdown: https://insights.sbomify.com/CVE-2026-11940/index.md)","id":"CVE-2026-11940","markdown":"https://insights.sbomify.com/CVE-2026-11940/index.md","name":"CVE-2026-11940","record":{"aliases":["ALPINE-CVE-2026-11940","ALSA-2026:54268","ALSA-2026:56219","ALSA-2026:58901","ALSA-2026:58902","ALSA-2026:58928","ALSA-2026:58971","ALSA-2026:59009","BELL-CVE-2026-11940","BIT-libpython-2026-11940","BIT-python-2026-11940","BIT-python-min-2026-11940","CLSA-2026-1786965561","CLSA-2026-1787311430","CLSA-2026-1788769322","DEBIAN-CVE-2026-11940","ECHO-4e4c-b37e-f35f","GHSA-9mc4-rqmq-h467","MINI-4vp4-2h86-x32p","MINI-5gj6-hw7f-hmc5","MINI-hrj8-23mq-8p8x","MINI-q2r2-vw5p-3w4h","MINI-v6qp-m7rp-98fc","PSF-2026-30","RHSA-2026:54268","RHSA-2026:56219","RHSA-2026:58901","RHSA-2026:58902","RHSA-2026:58928","RHSA-2026:58971","RHSA-2026:59009","RHSA-2026:62809","RHSA-2026:63024","RHSA-2026:63117","RHSA-2026:64806","RHSA-2026:64816","RLSA-2026:54268","RLSA-2026:56219","RLSA-2026:58901","RLSA-2026:58902","RLSA-2026:58928","RLSA-2026:58971","RLSA-2026:59009","ROOT-OS-ALPINE-320-CVE-2026-11940","ROOT-OS-DEBIAN-11-CVE-2026-11940","ROOT-OS-DEBIAN-12-CVE-2026-11940","ROOT-OS-DEBIAN-13-CVE-2026-11940","UBUNTU-CVE-2026-11940","openSUSE-SU-2026:11286-1","openSUSE-SU-2026:11343-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Python tarfile library","requires_auth":"none","summary":"Attackers can bypass tarfile extraction filters to create symlinks outside the destination, enabling arbitrary file reads or writes.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PSF","cpe":[],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N","version":"4.0"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"tarfile.extractall() with the 'data' or 'tar'\n filter could be bypassed by a crafted archive where a hardlink \nreferences a symlink stored at a deeper name than the hardlink itself.  \nThe extraction fallback validated the symlink at it's archived location \nbut recreated it at the hardlink's shallower\npath, letting a relative\n target the filter judged contained escape the destination directory.  \nThis allowed a malicious tar archive to create a symlink pointing \noutside the destination, enabling out-of-destination file reads or \nwrites. This was an incomplete fix of CVE-2025-4330.","ecosystems":["AlmaLinux:10","AlmaLinux:8","AlmaLinux:9","Bitnami","Red Hat:enterprise_linux:10.2","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:8::crb","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:enterprise_linux:9::crb","Red Hat:enterprise_linux_eus:10.0","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_aus:8.6::baseos","Red Hat:rhel_e4s:8.8::appstream","Red Hat:rhel_e4s:8.8::baseos","Red Hat:rhel_e4s:9.4::appstream","Red Hat:rhel_eus:9.6::appstream","Red Hat:rhel_eus:9.6::crb","Red Hat:rhel_eus_long_life:8.6::appstream","Red Hat:rhel_eus_long_life:8.6::baseos","Red Hat:rhel_tus:8.8::appstream","Red Hat:rhel_tus:8.8::baseos","Rocky Linux:10","Rocky Linux:8","Rocky Linux:9","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"tarfile extraction filter bypass allows escaping the destination directory","id":"CVE-2026-11940","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":269,"n_references":10,"next":{"headline":"Use-after-free in connection ID iterator and FFI functions","id":"CVE-2026-11941"},"packages":[{"ecosystem":"Bitnami","fixed":["3.10.21","3.11.16","3.12.14","3.13.15","3.14.7"],"introduced":["0","3.11.0","3.12.0","3.13.0","3.14.0"],"last_affected":[],"package":"libpython","purl":"pkg:bitnami/libpython","source":"BIT-libpython-2026-11940"},{"ecosystem":"Bitnami","fixed":["3.10.21","3.11.16","3.12.14","3.13.15","3.14.7"],"introduced":["0","3.11.0","3.12.0","3.13.0","3.14.0"],"last_affected":[],"package":"python","purl":"pkg:bitnami/python","source":"BIT-python-2026-11940"},{"ecosystem":"Bitnami","fixed":["3.10.21","3.11.16","3.12.14","3.13.15","3.14.7"],"introduced":["0","3.11.0","3.12.0","3.13.0","3.14.0"],"last_affected":[],"package":"python-min","purl":"pkg:bitnami/python-min","source":"BIT-python-min-2026-11940"},{"ecosystem":"AlmaLinux:10","fixed":["3.12.14-1.el10_2"],"introduced":["0"],"last_affected":[],"package":"python-unversioned-command","purl":"pkg:rpm/almalinux/python-unversioned-command","source":"ALSA-2026:58902"},{"ecosystem":"AlmaLinux:10","fixed":["3.12.14-1.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3","purl":"pkg:rpm/almalinux/python3","source":"ALSA-2026:58902"},{"ecosystem":"AlmaLinux:10","fixed":["3.12.14-1.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3-debug","purl":"pkg:rpm/almalinux/python3-debug","source":"ALSA-2026:58902"},{"ecosystem":"AlmaLinux:10","fixed":["3.12.14-1.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3-devel","purl":"pkg:rpm/almalinux/python3-devel","source":"ALSA-2026:58902"},{"ecosystem":"AlmaLinux:10","fixed":["3.12.14-1.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3-idle","purl":"pkg:rpm/almalinux/python3-idle","source":"ALSA-2026:58902"},{"ecosystem":"AlmaLinux:10","fixed":["3.12.14-1.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3-libs","purl":"pkg:rpm/almalinux/python3-libs","source":"ALSA-2026:58902"},{"ecosystem":"AlmaLinux:10","fixed":["3.12.14-1.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3-test","purl":"pkg:rpm/almalinux/python3-test","source":"ALSA-2026:58902"},{"ecosystem":"AlmaLinux:10","fixed":["3.12.14-1.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3-tkinter","purl":"pkg:rpm/almalinux/python3-tkinter","source":"ALSA-2026:58902"},{"ecosystem":"AlmaLinux:10","fixed":["3.14.7-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3.14","purl":"pkg:rpm/almalinux/python3.14","source":"ALSA-2026:58928"},{"ecosystem":"AlmaLinux:10","fixed":["3.14.7-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3.14-debug","purl":"pkg:rpm/almalinux/python3.14-debug","source":"ALSA-2026:58928"},{"ecosystem":"AlmaLinux:10","fixed":["3.14.7-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3.14-devel","purl":"pkg:rpm/almalinux/python3.14-devel","source":"ALSA-2026:58928"},{"ecosystem":"AlmaLinux:10","fixed":["3.14.7-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3.14-freethreading","purl":"pkg:rpm/almalinux/python3.14-freethreading","source":"ALSA-2026:58928"},{"ecosystem":"AlmaLinux:10","fixed":["3.14.7-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3.14-freethreading-debug","purl":"pkg:rpm/almalinux/python3.14-freethreading-debug","source":"ALSA-2026:58928"},{"ecosystem":"AlmaLinux:10","fixed":["3.14.7-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3.14-freethreading-devel","purl":"pkg:rpm/almalinux/python3.14-freethreading-devel","source":"ALSA-2026:58928"},{"ecosystem":"AlmaLinux:10","fixed":["3.14.7-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3.14-freethreading-idle","purl":"pkg:rpm/almalinux/python3.14-freethreading-idle","source":"ALSA-2026:58928"},{"ecosystem":"AlmaLinux:10","fixed":["3.14.7-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3.14-freethreading-libs","purl":"pkg:rpm/almalinux/python3.14-freethreading-libs","source":"ALSA-2026:58928"},{"ecosystem":"AlmaLinux:10","fixed":["3.14.7-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3.14-freethreading-test","purl":"pkg:rpm/almalinux/python3.14-freethreading-test","source":"ALSA-2026:58928"},{"ecosystem":"AlmaLinux:10","fixed":["3.14.7-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3.14-freethreading-tkinter","purl":"pkg:rpm/almalinux/python3.14-freethreading-tkinter","source":"ALSA-2026:58928"},{"ecosystem":"AlmaLinux:10","fixed":["3.14.7-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3.14-idle","purl":"pkg:rpm/almalinux/python3.14-idle","source":"ALSA-2026:58928"},{"ecosystem":"AlmaLinux:10","fixed":["3.14.7-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3.14-libs","purl":"pkg:rpm/almalinux/python3.14-libs","source":"ALSA-2026:58928"},{"ecosystem":"AlmaLinux:10","fixed":["3.14.7-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3.14-test","purl":"pkg:rpm/almalinux/python3.14-test","source":"ALSA-2026:58928"},{"ecosystem":"AlmaLinux:10","fixed":["3.14.7-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"python3.14-tkinter","purl":"pkg:rpm/almalinux/python3.14-tkinter","source":"ALSA-2026:58928"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-78.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"platform-python","purl":"pkg:rpm/almalinux/platform-python","source":"ALSA-2026:56219"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-78.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"platform-python-debug","purl":"pkg:rpm/almalinux/platform-python-debug","source":"ALSA-2026:56219"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-78.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"platform-python-devel","purl":"pkg:rpm/almalinux/platform-python-devel","source":"ALSA-2026:56219"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-78.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"python3-idle","purl":"pkg:rpm/almalinux/python3-idle","source":"ALSA-2026:56219"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-78.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"python3-libs","purl":"pkg:rpm/almalinux/python3-libs","source":"ALSA-2026:56219"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-78.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"python3-test","purl":"pkg:rpm/almalinux/python3-test","source":"ALSA-2026:56219"},{"ecosystem":"AlmaLinux:8","fixed":["3.6.8-78.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"python3-tkinter","purl":"pkg:rpm/almalinux/python3-tkinter","source":"ALSA-2026:56219"},{"ecosystem":"AlmaLinux:8","fixed":["3.12.14-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3.12","purl":"pkg:rpm/almalinux/python3.12","source":"ALSA-2026:58971"},{"ecosystem":"AlmaLinux:8","fixed":["3.12.14-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3.12-debug","purl":"pkg:rpm/almalinux/python3.12-debug","source":"ALSA-2026:58971"},{"ecosystem":"AlmaLinux:8","fixed":["3.12.14-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3.12-devel","purl":"pkg:rpm/almalinux/python3.12-devel","source":"ALSA-2026:58971"},{"ecosystem":"AlmaLinux:8","fixed":["3.12.14-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3.12-idle","purl":"pkg:rpm/almalinux/python3.12-idle","source":"ALSA-2026:58971"},{"ecosystem":"AlmaLinux:8","fixed":["3.12.14-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3.12-libs","purl":"pkg:rpm/almalinux/python3.12-libs","source":"ALSA-2026:58971"},{"ecosystem":"AlmaLinux:8","fixed":["3.12.14-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3.12-rpm-macros","purl":"pkg:rpm/almalinux/python3.12-rpm-macros","source":"ALSA-2026:58971"},{"ecosystem":"AlmaLinux:8","fixed":["3.12.14-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3.12-test","purl":"pkg:rpm/almalinux/python3.12-test","source":"ALSA-2026:58971"},{"ecosystem":"AlmaLinux:8","fixed":["3.12.14-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3.12-tkinter","purl":"pkg:rpm/almalinux/python3.12-tkinter","source":"ALSA-2026:58971"}],"prev":{"headline":"Security vulnerabilities have been found in IBM Verify Identity Access and IBM Security Verify Access","id":"CVE-2026-11939"},"products":["CPython"],"published":"2026-06-23","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-13","vendors":["Python Software Foundation"]},"summary":"Attackers can bypass tarfile extraction filters to create symlinks outside the destination, enabling arbitrary file reads or writes.","url":"https://insights.sbomify.com/CVE-2026-11940/"}