CVE-2025-4517
Last modified
CVE-2025-4517 is a critical-severity vulnerability rated 9.4/10 on the CVSS scale. Allows arbitrary filesystem writes outside the extraction directory during extraction with filter="data". You 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. Note 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. Note 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. EPSS estimates a 1.23% chance of exploitation in the next 30 days.
Description
Allows arbitrary filesystem writes outside the extraction directory during extraction with filter="data". You 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. Note 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. Note 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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-4517?
How severe is CVE-2025-4517?
How do I fix CVE-2025-4517?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-4515A vulnerability, which was classified as problematic, was fo…6.5
- CVE-2025-45150Insecure permissions in LangChain-ChatGLM-Webui commit ef829…9.8
- CVE-2025-45156Splashin iOS v2.0 fails to enforce server-side interval rest…5.3
- CVE-2025-45157Insecure permissions in Splashin iOS v2.0 allow unauthorized…6.5
- CVE-2025-4516There is an issue in CPython when using `bytes.decode("unico…5.9
- CVE-2025-45160A HTML injection vulnerability exists in the file upload fun…5.4
- CVE-2025-4519The IDonate – Blood Donation, Request And Donor Management S…8.8
- CVE-2025-4520The Uncanny Automator plugin for WordPress is vulnerable to …4.3
- CVE-2025-4521The IDonate – Blood Donation, Request And Donor Management S…8.8
- CVE-2025-4522The IDonate – Blood Donation, Request And Donor Management S…6.5
- CVE-2025-4523The IDonate – Blood Donation, Request And Donor Management S…6.5
- CVE-2025-45236A stored cross-site scripting (XSS) vulnerability in the Edi…5.4
Are you affected by CVE-2025-4517?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
