Skip to content
OpenAdvisories
Critical USN-7583-1 5 CVEs

python3.13, python3.12 vulnerabilities

Published Jun 19, 2025 · Updated Apr 22, 2026

Summary

It was discovered that Python incorrectly handled tar archive extraction
with the filtering option. An attacker could possibly use this issue to
modify files in arbitrary filesystem locations and cause data loss.

Fixed packages 1

ReleasePackageFixed in
Ubuntu · 24.04 LTS 24.04:LTS python3.12 3.12.3-1ubuntu0.7

Vulnerabilities 5

  • Critical 9.4
    CVE-2025-4517 Public exploit

    Arbitrary writes via tarfile realpath overflow

    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() usin…

  • High 7.5
    CVE-2025-4138 Public exploit

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

    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 u…

  • High 7.5

    Extraction filter bypass for linking outside extraction directory

    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 u…

  • High 7.5

    Tarfile extracts filtered members when errorlevel=0

    When using a TarFile.errorlevel = 0 and extracting with a filter the documented behavior is that any filtered members would be skipped and not extracted. However the actual behavior of TarFile.errorlevel = 0 in affected versions is that the member would still…

  • Medium 5.3

    Bypass extraction filter to modify file metadata outside extraction directory

    Allows modifying some file metadata (e.g. last modified) with filter="data" or file permissions (chmod) with filter="tar" of files outside the extraction directory. You are affected by this vulnerability if using the tarfile module to extract untrusted tar ar…

References

  • report
    https://ubuntu.com/security/CVE-2024-12718
  • report
    https://ubuntu.com/security/CVE-2025-4138
  • report
    https://ubuntu.com/security/CVE-2025-4330
  • report
    https://ubuntu.com/security/CVE-2025-4435
  • report
    https://ubuntu.com/security/CVE-2025-4517