PT-2025-23608

CVE-2025-4138

·

Published

2025-06-03

·

Updated

2026-09-18

Description by

CVSS 2.0
7.8
High
MetricsAV:N/AC:L/Au:N/C:C/I:N/A:N
Name of the Vulnerable Software and Affected Versions Python versions 3.12 through 3.13
Description An issue in the tarfile module allows the extraction filter to be ignored when extracting untrusted tar archives. This can enable an attacker to create symbolic links that point outside the destination directory, modify file metadata, and potentially modify files in arbitrary filesystem locations, leading to data loss or unauthorized access to protected information. The issue occurs when using the TarFile.extractall() or TarFile.extract() functions with the filter parameter set to data or tar. For Python versions 3.14 and later, the default value of the filter parameter is data, making usage relying on this default behavior also susceptible.
Recommendations Update Python 3.12 to version 3.12.7-1ubuntu2.2. Update Python 3.13 to version 3.13.0-1ubuntu0.3. Avoid using the filter parameter with values data or tar when extracting untrusted archives. Avoid installing source distributions containing suspicious links.
Exploitability
Exploit
Fix
Impacts
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-62322
BIT-LIBPYTHON-2025-4138
BIT-PYTHON-2025-4138
BIT-PYTHON-MIN-2025-4138
CESA-2025_10026
CESA-2025_10031
CESA-2025_10128
CLEANSTART-2026-CI66802
CLEANSTART-2026-KM27583
CLEANSTART-2026-OH23140
CLEANSTART-2026-SP91806
CLEANSTART-2026-XR78310
CLEANSTART-2026-YD82249
ECHO-5B27-F272-CF44
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-2304
OESA-2025-2305
OESA-2025-2538
PSF-2025-6
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 👾