CVE-2025-4517

Allows arbitrary filesystem writes outside the extraction directory during extraction with filter="data".


You are affected by this vulnerability if using the tarfilemodule 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.
Path Traversal
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
9.4 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
PSFCNA
9.4 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
CISA-ADPADP
---
---
Awaiting analysis
This vulnerability is currently awaiting analysis.
Base Score
CVSS 3.x
EPSS Score
Percentile: 35%
Debian logo
Debian Releases
Debian Product
Codename
jython
bullseye
2.7.2+repack1-3
not-affected
bookworm
2.7.3+repack1-1
no-dsa
trixie
2.7.3+repack1-1
no-dsa
forky
2.7.3+repack1-1
fixed
sid
2.7.3+repack1-1
fixed
pypy3
bullseye
7.3.5+dfsg-2+deb11u2
not-affected
bookworm
no-dsa
trixie
no-dsa
bullseye (security)
7.3.5+dfsg-2+deb11u4
fixed
forky
vulnerable
sid
vulnerable
python2.7
bullseye
2.7.18-8+deb11u1
fixed
bookworm
no-dsa
trixie
no-dsa
python3.11
bookworm
3.11.2-6+deb12u6
no-dsa
trixie
no-dsa
bullseye
not-affected
bookworm (security)
3.11.2-6+deb12u3
fixed
python3.13
trixie
3.13.5-2
no-dsa
bookworm
no-dsa
bullseye
not-affected
forky
3.13.7-1
fixed
sid
3.13.7-1
fixed
python3.9
bullseye
3.9.2-1
not-affected
bookworm
no-dsa
trixie
no-dsa
bullseye (security)
3.9.2-1+deb11u3
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename