CVE-2025-4138
Last modified
CVE-2025-4138 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. Allows the extraction filter to be ignored, allowing symlink targets to point outside the destination directory, and the modification of some file metadata. 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.15% chance of exploitation in the next 30 days.
Description
Allows the extraction filter to be ignored, allowing symlink targets to point outside the destination directory, and the modification of some file metadata. 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:N/A:N
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-4138?
How severe is CVE-2025-4138?
How do I fix CVE-2025-4138?
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-41374A SQL injection vulnerability has been found in Gandia Integ…8.8
- CVE-2025-41375SQL Injection vulnerability in Limesurvey v2.65.1+170522. Th…9.8
- CVE-2025-41376CRLF Injection vulnerability in Limesurvey v2.65.1+170522. …5.3
- CVE-2025-41377A SQL injection vulnerability has been found in Gandia Integ…8.7
- CVE-2025-41378The SSID field is not parsed correctly and can be used to in…6.9
- CVE-2025-41379The Intellian C700 web panel allows you to add firewall rule…6.3
- CVE-2025-41380Iridium Certus 700 version 1.0.1 has an embedded credentials…6.1
- CVE-2025-41384Cross-Site Scripting (XSS) vulnerability reflected in SuiteC…6.1
- CVE-2025-41385An OS Command Injection issue exists in wivia 5 all versions…7.2
- CVE-2025-41388Fuji Electric Smart Editor is vulnerable to a stack-based bu…8.4
- CVE-2025-4139A vulnerability classified as critical was found in Netgear …8.8
- CVE-2025-41390An arbitrary code execution vulnerability exists in the git …7.8
Are you affected by CVE-2025-4138?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
