PT-2025-23611

CVE-2025-4517

·

Published

2025-06-02

·

Updated

2026-09-24

Description by

CVSS 2.0
9.7
Critical
MetricsAV:N/AC:L/Au:N/C:C/I:C/A:P
Name of the Vulnerable Software and Affected Versions Python versions 3.12 through 3.13
Description An issue in the tarfile module allows arbitrary filesystem writes outside the extraction directory when extracting untrusted tar archives. This occurs when using the TarFile.extractall() or TarFile.extract() functions with the filter parameter set to data or tar. For Python 3.14 and later, the default value of filter changed to data, making usage relying on this default behavior also susceptible. An attacker could exploit this to modify files in arbitrary locations, cause data loss, or potentially achieve privilege escalation or container escape if the scripts are executed with root privileges.
Recommendations Update Python 3.12 to version 3.12.11 or later. Update Python 3.13 to version 3.13.4 or later. As a temporary workaround, avoid using the filter parameter with values data or tar when extracting untrusted archives.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
ALSA-2025:10026
ALSA-2025:10031
ALSA-2025:10128
ALSA-2025:10136
ALSA-2025:10140
ALSA-2025:10148
ALSA-2025:10189
ALSA-2025:23530
AZL-62307
AZL-62318
BIT-LIBPYTHON-2025-4517
BIT-PYTHON-2025-4517
BIT-PYTHON-MIN-2025-4517
CESA-2025_10026
CESA-2025_10031
CESA-2025_10128
CLEANSTART-2026-CI66802
CLEANSTART-2026-CP22630
CLEANSTART-2026-KM27583
CLEANSTART-2026-NP36052
CLEANSTART-2026-OH23140
CLEANSTART-2026-SP91806
CLEANSTART-2026-XR78310
ECHO-9CFA-3451-0E1E
INFSA-2025_10026
INFSA-2025_10031
INFSA-2025_10128
INFSA-2025_10136
INFSA-2025_10148
INFSA-2025_10189
MGASA-2025-0280
OESA-2025-1789
OESA-2025-1790
OESA-2025-1791
OESA-2025-2332
OESA-2025-2333
OPENSUSE-SU-2025:15285-1
OPENSUSE-SU-2025:15286-1
OPENSUSE-SU-2025:15287-1
OPENSUSE-SU-2025:15288-1
OPENSUSE-SU-2025:15290-1
PSF-2025-9
RHSA-2025:10026
RHSA-2025_10026
RHSA-2025:10028
RHSA-2025:10031
RHSA-2025_10031
RHSA-2025:10128
RHSA-2025_10128
RHSA-2025:10136
RHSA-2025_10136
RHSA-2025:10140
RHSA-2025:10148
RHSA-2025_10148
RHSA-2025:10189
RHSA-2025_10189
RHSA-2025:10399
RHSA-2025:10484
RHSA-2025:10602
RHSA-2025:9918
SUSE-SU-2025:02047-1
SUSE-SU-2025_02047-1
SUSE-SU-2025:02048-1
SUSE-SU-2025:02049-1
SUSE-SU-2025_02049-1
SUSE-SU-2025:02050-1
SUSE-SU-2025_02050-1
SUSE-SU-2025:02057-1
SUSE-SU-2025_02057-1
SUSE-SU-2025:02074-1
SUSE-SU-2025:02297-1
SUSE-SU-2025_02297-1
SUSE-SU-2025:02427-1
SUSE-SU-2025:02778-1
SUSE-SU-2025_02778-1
SUSE-SU-2025:20492-1
SUSE-SU-2025:20539-1
SUSE-SU-2026:0210-1
USN-7583-1
Found an issue in the description? Have something to add? Feel free to write us 👾