CVE-2025-4330 | Extraction filter bypass for linking outside extraction directory

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: 2025-06-03 Last update: 2026-04-15 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2025-4330 is rated Moderate Risk (57.6/100): CVSS High severity, with medium exploitation likelihood (EPSS 1.01%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2025-4330

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-03-30 0.36% 1.01% +0.65%
2 2026-03-20 0.25% 0.36% +0.11%
3 2026-02-20 0.25%

Full EPSS history (9 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-4330

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 3.6 [email protected]

Weakness enumeration for CVE-2025-4330

OS Trackers for CVE-2025-4330

vendor priority summary link
alpine high CVE-2025-4330: 2 source package rows (python3, python3-tkinter); 9 state rows across 8 repos (3.19-main, 3.20-main, 3.21-community, 3.21-main, 3.22-community, 3.22-main, edge-community, edge-main); fixed 9, open 0. https://security.alpinelinux.org/vuln/CVE-2025-4330
debian unimportant CVE-2025-4330 unimportant priority: Debian including 6 source packages (jython, pypy3, python2.7, python3.11, python3.13, python3.9), 16 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 14, open 2. https://security-tracker.debian.org/tracker/CVE-2025-4330
gentoo high CVE-2025-4330: 1 GLSA(s) (202506-07), 2 atom(s) (dev-lang/pypy, dev-lang/python); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2025-4330
redhat medium https://access.redhat.com/security/cve/CVE-2025-4330
suse high CVE-2025-4330 severity important: SUSE including 619 source package names (0.0.17-1.1:libpython3_11-1_0-3.11.13-150600.3.30.1, 0.0.17-1.1:libpython3_6m1_0-3.6.15-150300.10.97.1, …), 2414 product×package rows across 361 product lines (Container bci/kiwi, Container bci/spack, … (361 product lines)): Fixed 2093, Known Affected 231, Known Not Affected 90. https://www.suse.com/security/cve/CVE-2025-4330/
ubuntu medium CVE-2025-4330 medium priority: Ubuntu including 12 source packages (python2.7, python3.10, …), 84 status rows across 10 suites (bionic, focal, jammy, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 51, not-affected 16, needs-triage 10, released 7. https://ubuntu.com/security/CVE-2025-4330

Affected software / configurations for CVE-2025-4330

Vendor Product Version Raw CPE
No affected products in dataset.

References for CVE-2025-4330

URL Tags
https://gist.github.com/sethmlarson/52398e33eff261329a0180ac1d54f42f
https://github.com/python/cpython/commit/19de092debb3d7e832e5672cc2f7b788d35951da
https://github.com/python/cpython/commit/28463dba112af719df1e8b0391c46787ad756dd9
https://github.com/python/cpython/commit/3612d8f51741b11f36f8fb0494d79086bac9390a
https://github.com/python/cpython/commit/4633f3f497b1ff70e4a35b6fe2c907cbe2d4cb2e
https://github.com/python/cpython/commit/9c1110ef6652687d7c55f590f909720eddde965a
https://github.com/python/cpython/commit/9e0ac76d96cf80b49055f6d6b9a6763fb9215c2a
https://github.com/python/cpython/commit/aa9eb5f757ceff461e6e996f12c89e5d9b583b01
https://github.com/python/cpython/commit/dd8f187d0746da151e0025c51680979ac5b4cfb1
https://github.com/python/cpython/issues/135034
https://github.com/python/cpython/pull/135037
https://mail.python.org/archives/list/[email protected]/thread/MAXIJJCUUMCL7ATZNDVEGGHUMQMUUKLG/
cvelogic Threat Intelligence