Skip to main content
Network Thinking Solutions Logo

CVE-2025-4330

Extraction filter bypass for linking outside extraction directory

All CVEs
CVE-2025-4330Published 6/3/2025

Extraction filter bypass for linking outside extraction directory

Vendor advisory
CVSS7.5High

Overview

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.

Published
6/3/2025
Last modified
7/31/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
CPython
Python Software Foundation
< 3.9.23

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
CPython
Python Software Foundation
≥ 3.10.0, < 3.10.18

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
CPython
Python Software Foundation
≥ 3.11.0, < 3.11.13

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
CPython
Python Software Foundation
≥ 3.12.0, < 3.12.11

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
CPython
Python Software Foundation
≥ 3.13.0, < 3.13.4

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source
CPython
Python Software Foundation
≥ 3.14.0a1, < 3.14.0b3

Verify advisory

The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability.

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.