{"answers":{"affected":"3 open source packages ship an affected version, including libpython, python and python-min.","exploited":"There is no known exploitation of CVE-2025-4517 in the wild and no public exploit code.","fix":"Upgrade libpython to a fixed version for your release line: 3.9.23, 3.10.18, 3.11.13 or 3.12.11.","what":"CVE-2025-4517 is a critical path traversal vulnerability in CPython, published on 3 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-4517 and fix it if it is affected.\n\nWhat it is: CVE-2025-4517 is a critical path traversal vulnerability in CPython, published on 3 Jun 2025. 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-2025-4517 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- libpython (Bitnami): affected all versions; fixed in 3.9.23, 3.10.18, 3.11.13, 3.12.11, 3.13.4\n- python (Bitnami): affected all versions; fixed in 3.9.23, 3.10.18, 3.11.13, 3.12.11, 3.13.4\n- python-min (Bitnami): affected all versions; fixed in 3.9.23, 3.10.18, 3.11.13, 3.12.11, 3.13.4\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-2025-4517/ (Markdown: https://insights.sbomify.com/CVE-2025-4517/index.md)","id":"CVE-2025-4517","markdown":"https://insights.sbomify.com/CVE-2025-4517/index.md","name":"CVE-2025-4517","record":{"aliases":["ALPINE-CVE-2025-4517","AZL-62307","AZL-62318","BELL-CVE-2025-4517","BIT-libpython-2025-4517","BIT-python-2025-4517","BIT-python-min-2025-4517","CLEANSTART-2026-CP22630","CLEANSTART-2026-NP36052","DEBIAN-CVE-2025-4517","ECHO-9cfa-3451-0e1e","GHSA-6r6c-684h-9j7p","MINI-3vq5-cmp2-rh3h","MINI-vjfr-qc3q-mpw4","MINI-vx3g-pp28-476g","MINI-xfh2-5gx8-2x38","PSF-2025-9","UBUNTU-CVE-2025-4517"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Python standard library","requires_auth":"none","summary":"Attackers can write arbitrary files outside the extraction directory when extracting untrusted tar archives using specific filters in Python's tarfile module.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PSF","cpe":[],"cvss":{"score":9.4,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Allows arbitrary filesystem writes outside the extraction directory during extraction with filter=\"data\".\n\nYou are affected by this vulnerability if using the tarfile module to extract untrusted tar archives using TarFile.extractall() or TarFile.extract() using the filter= parameter with a value of \"data\" or \"tar\". See the tarfile  extraction filters documentation https://docs.python.org/3/library/tarfile.html#tarfile-extraction-filter  for more information.\n\nNote that for Python 3.14 or later the default value of filter= changed from \"no filtering\" to `\"data\", so if you are relying on this new default behavior then your usage is also affected.\n\nNote that none of these vulnerabilities significantly affect the installation of source distributions which are tar archives as source distributions already allow arbitrary code execution during the build process. However when evaluating source distributions it's important to avoid installing source distributions with suspicious links.","ecosystems":["Bitnami"],"exploits":{"exploitdb":0,"first_seen":"2026-02-15","github_poc":8,"max_poc_stars":10,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-02-15T22:09:53Z","kind":"github_poc","ref":"https://github.com/AzureADTrent/CVE-2025-4517-POC","stars":10,"title":"Privilege Escalation script for CVE-2025-4517"},{"date":"2026-02-15T19:39:19Z","kind":"github_poc","ref":"https://github.com/0xDTC/CVE-2025-4517-tarfile-PATH_MAX-bypass","stars":8,"title":"Python tarfile data filter bypass via PATH_MAX overflow in os.path.realpath() - CVE-2025-4517 / CVE-2025-4330"},{"date":"2026-02-15T03:10:57Z","kind":"github_poc","ref":"https://github.com/AnimePrincess420/CVE-2025-4517-PoC","stars":2,"title":"CVE‑2025‑4517 Proof‑of‑Concept Script"},{"date":"2026-02-15T12:27:52Z","kind":"github_poc","ref":"https://github.com/StealthByte0/CVE-2025-4517-poc","stars":2,"title":"CVE-2025-4517  (CVSS 9.4 – Critical)   A vulnerability in Python's `tarfile` "},{"date":"2026-02-20T02:08:32Z","kind":"github_poc","ref":"https://github.com/estebanzarate/CVE-2025-4517-Python-tarfile-filter-data-Bypass-PoC","stars":1,"title":"Path traversal vulnerability in Python's tarfile."},{"date":"2026-02-16T04:19:41Z","kind":"github_poc","ref":"https://github.com/Rohitberiwala/PyPath-Escape-CVE-2025-4517-Exploit-Research","stars":0,"title":"A high-performance Python toolkit to automate the CVE-2025-4517 PATH_MAX bypass exploit. Specifically tuned for the WingData HTB challenge to achieve arbitrary file writes and root persistence"},{"date":"2026-02-17T01:38:45Z","kind":"github_poc","ref":"https://github.com/kerburenthusiasm/CVE-2025-4517-PoC","stars":0,"title":"PoC and explanation for CVE-2025-4517 used in a CTF I was playing."},{"date":"2026-02-18T09:26:18Z","kind":"github_poc","ref":"https://github.com/bgutowski/CVE-2025-4517-POC-Sudoers","stars":0,"title":"Exploit for CVE-2024-6232 - Python Tarfile Realpath Overflow"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Arbitrary writes via tarfile realpath overflow","id":"CVE-2025-4517","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":3,"n_references":12,"next":{"headline":"Missing authorization in IDonate – Blood Donation, Request And Donor Management System","id":"CVE-2025-4519"},"packages":[{"ecosystem":"Bitnami","fixed":["3.9.23","3.10.18","3.11.13","3.12.11","3.13.4"],"introduced":["0","3.10.0","3.11.0","3.12.0","3.13.0"],"last_affected":[],"package":"libpython","purl":"pkg:bitnami/libpython","source":"BIT-libpython-2025-4517"},{"ecosystem":"Bitnami","fixed":["3.9.23","3.10.18","3.11.13","3.12.11","3.13.4"],"introduced":["0","3.10.0","3.11.0","3.12.0","3.13.0"],"last_affected":[],"package":"python","purl":"pkg:bitnami/python","source":"BIT-python-2025-4517"},{"ecosystem":"Bitnami","fixed":["3.9.23","3.10.18","3.11.13","3.12.11","3.13.4"],"introduced":["0","3.10.0","3.11.0","3.12.0","3.13.0"],"last_affected":[],"package":"python-min","purl":"pkg:bitnami/python-min","source":"BIT-python-min-2025-4517"}],"prev":{"headline":"Use-after-free in \"unicode_escape\" decoder with error handler","id":"CVE-2025-4516"},"products":["CPython"],"published":"2025-06-03","related":[],"sources":[{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-04","vendors":["Python Software Foundation"]},"summary":"Attackers can write arbitrary files outside the extraction directory when extracting untrusted tar archives using specific filters in Python's tarfile module.","url":"https://insights.sbomify.com/CVE-2025-4517/"}