Skip to main content
HIGH

CVE-2025-4138

Bypassing extraction filter to create symlinks to arbitrary targets outside extraction directory

CVSS v3

7.5

HIGH

EPSS Score

1.4 %

exploit probability, as of 2026-09-25

CISA KEV

No

known exploited

Exploitation

none

SSVC status

Description

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 mor

Technical details

Published
2025-06-03
Last Modified
2026-04-15

Frequently asked questions

What is CVE-2025-4138?

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 mor

Is CVE-2025-4138 actively exploited?

Active exploitation of CVE-2025-4138 has not been confirmed. Its EPSS score was 1.4% on 2026-09-25, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2025-4138?

CVE-2025-4138 has a CVSS v3 base score of 7.5 (HIGH severity).

Is CVE-2025-4138 affecting your environment?

Use isMalicious to check if any of your IPs or domains are associated with this vulnerability's IOCs.

No credit card required · 500 free checks/month · Free API key