cbcvebase.
CVE-2025-4517
published 2025-06-03

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…

PriorityP358critical9.4CVSS 3.1
AVNACLPRNUINSUCHIHAL
EPSS
1.23%
65.4th percentile
Allows arbitrary filesystem writes outside the extraction directory during extraction with filter="data". 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.

Affected

18 ranges
VendorProductVersion rangeFixed in
debianjython< pypy3 7.3.20+dfsg-2 (forky)pypy3 7.3.20+dfsg-2 (forky)
debiankeras
debianpypy3< pypy3 7.3.20+dfsg-2 (forky)pypy3 7.3.20+dfsg-2 (forky)
debianpython2.7< pypy3 7.3.20+dfsg-2 (forky)pypy3 7.3.20+dfsg-2 (forky)
debianpython3.11< pypy3 7.3.20+dfsg-2 (forky)pypy3 7.3.20+dfsg-2 (forky)
debianpython3.13< pypy3 7.3.20+dfsg-2 (forky)pypy3 7.3.20+dfsg-2 (forky)
debianpython3.9< pypy3 7.3.20+dfsg-2 (forky)pypy3 7.3.20+dfsg-2 (forky)
keras-teamkeras-team_kerasunspecified – latest
keraskeras>= 0 < 3.12.03.12.0
msrcazl3_python3_3.12.9-2_on_azure_linux_3.0
msrcazl3_tensorflow_2.16.1-9_on_azure_linux_3.0
msrccbl2_python3_3.9.19-13_on_cbl_mariner_2.0
msrccbl2_python3_3.9.19-14_on_cbl_mariner_2.0
python_software_foundationcpython< 3.10.183.10.18
python_software_foundationcpython>= 3.11.0 < 3.11.133.11.13
python_software_foundationcpython>= 3.12.0 < 3.12.113.12.11
python_software_foundationcpython>= 3.13.0 < 3.13.43.13.4
python_software_foundationcpython>= 3.14.0a1 < 3.14.0b33.14.0b3

CVSS provenance

nvdv3.19.4CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
ghsa9.4CRITICAL
osv9.4CRITICAL
vendor_debian9.4LOW
vendor_msrc9.4CRITICAL
vendor_redhat9.4CRITICAL
vendor_oracle7.3CRITICAL
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.