9.4

CVE-2025-4517: Arbitrary writes via tarfile realpath overflow

Deferred
AliasesALPINE-CVE-2025-4517UBUNTU-CVE-2025-4517DEBIAN-CVE-2025-4517
Published 03-06-2025Last modified 04-08-2026

Vulnerability summary

CVE-2025-4517 is a critical (CVSS 9.4) vulnerability in python software foundation cpython. EPSS estimates a 1.48% chance of exploitation in the next 30 days, higher than 73.9% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 9.4 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 03-11-2026)

Source freshness unavailable

How is this decided?
CVSS score
9.4/10
010
Critical · v3.1 (CVE.org)
EPSS score
1.48%
0%100%
Low · +0.05 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 32 · Related 20

Timeline

  1. 03-06-2025
    PublishedVulnerability first disclosed.
  2. 04-08-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

7 scores · 7 sources · 1 version

EPSS trend

Probability

1.48%

Chance of exploitation in the next 30 days

Percentile

74%

Versus all other CVEs

30-day change

Increase +0.05 pp

From 1.43% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine2 products
  • python3< 3.11.13-r0 | < 3.12.11-r0
  • python3-tkinter< 3.12.11-r0
Debian2 products
  • pypy3All versions (No fix recorded) | < 7.3.20+dfsg-2
  • python3.13< 3.13.4-1
Ubuntu2 products
  • python3.12< 3.12.3-1ubuntu0.7
  • python3.14< 3.14.0-1
Chainguard1 product
  • python-3.13< 3.13.4-r0
Python software foundation1 product
  • cpython< 3.9.23 | ≥ 3.10.0, < 3.10.18 | ≥ 3.11.0, < 3.11.13 | ≥ 3.12.0, < 3.12.11 | ≥ 3.13.0, < 3.13.4 | ≥ 3.14.0a1, < 3.14.0b3
Wolfi1 product
  • python-3.13< 3.13.4-r0

6 vendors · 9 products

References

21 links
Show all 21 references