VDB

CVE-2025-4330

CVE-2025-4330 PUBLISHED CVSS 7.5 HIGH

Extraction filter bypass for linking outside extraction directory

Reported by psf · Published June 3, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
python3.11Amazon Linux3.11.13-1.amzn2023.0.1
python3errata.rockylinux.org3.6.8-70.el8
python3.12-debugAmazon Linux3.12.10-2.amzn2023.0.2
python3.12-tkinterAmazon Linux3.12.10-2.amzn2023.0.2
python3.12-idleAmazon Linux3.12.10-2.amzn2023.0.2
python3.12-develAmazon Linux3.12.10-2.amzn2023.0.2
python-3.13Wolfi3.13.4-r0
python3-idleerrata.rockylinux.org3.6.8-70.el8
python3.11-testAmazon Linux3.11.13-1.amzn2023.0.1
python-minBitnami3.13.4, 3.12.11, 3.11.13, 3.10.18, 3.9.23
python3.11-libsAmazon Linux3.11.13-1.amzn2023.0.1
python3-libserrata.rockylinux.org3.6.8-70.el8

42 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected products

VendorProductVersions
Python Software FoundationCPython0, 3.10.0, 3.11.0
amazon:2023python3.110
amazon:2023python3.12-debug0
amazon:2023python3.12-tkinter0
amazon:2023python3.12-idle0
amazon:2023python3.12-devel0
wolfipython-3.130
amazon:2023python3.11-test0
amazon:2023python3.11-libs0
amazon:2023python3-idle0
amazon:2023python3-debug0
alpinepython30, 0
amazon:2023python3.11-tkinter0
chainguardpython-3.130
amazon:2023python3-test0
amazon:2023python3-devel0
amazon:2023python3.12-libs0
alpinepython3-tkinter0
amazon:2023python3.120
amazon:2023python3.11-idle0

…and 8 more

Timeline

  • Jun 3, 2025 CVE Published
  • Jun 3, 2025 GitHub Gist PoC
  • Jun 4, 2025 EPSS Score (30 in total, the first dated here)
  • Jun 10, 2025 Coalition ESS Score (11 in total, the first dated here)
  • May 22, 2026 Security Advisory (31 in total, the first dated here)
  • May 26, 2026 Distribution Patch (22 in total, the first dated here)
  • Oct 19, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-4330
vulnetix vdb fixes CVE-2025-4330

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-4330/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

  • issue-tracking
  • patch
  • vendor-advisory
  • patch
  • patch
  • mitigation
  • patch
  • patch
  • patch
  • patch
  • patch
  • patch
Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›