CVE-2025-4330
Last modified
CVE-2025-4330 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 0.80% 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:N/I:H/A:N
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-4330?
How severe is CVE-2025-4330?
How do I fix CVE-2025-4330?
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-43294An issue existed in the handling of environment variables. T…3.3
- CVE-2025-43295A denial-of-service issue was addressed with improved valida…5.5
- CVE-2025-43296A logic issue was addressed with improved validation. This i…5.5
- CVE-2025-43297A type confusion issue was addressed with improved memory ha…6.2
- CVE-2025-43298A parsing issue in the handling of directory paths was addre…7.8
- CVE-2025-43299A denial-of-service issue was addressed with improved valida…5.5
- CVE-2025-43300An out-of-bounds write issue was addressed with improved bou…10
- CVE-2025-43301A privacy issue was addressed with improved private data red…3.3
- CVE-2025-43302An out-of-bounds write issue was addressed with improved bou…5.5
- CVE-2025-43303A logging issue was addressed with improved data redaction. …5.5
- CVE-2025-43304A race condition was addressed with improved state handling.…7
- CVE-2025-43305A logic issue was addressed with improved checks. This issue…5.5
Are you affected by CVE-2025-4330?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
