CVE catalog

CVE-2025-4138

Python vulnerabilities

[CVE catalog]

Severity
High · CVSS 8.2CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
1.39% · Oct 25, 2026

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 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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpypy3sid8.0.1+dfsg-1fixed
Debianpypy3forky8.0.1+dfsg-1fixed
Debianpypy3trixie7.3.19+dfsg-2vulnerable
Debianpypy3bookworm7.3.11+dfsg-2+deb12u3vulnerable
Debianjythonsid2.7.3+repack1-1not affected
Debianjythonforky2.7.3+repack1-1not affected
Debianjythontrixie2.7.3+repack1-1not affected
Debianjythonbookworm2.7.3+repack1-1not affected
Debianpython3.11bookworm3.11.2-6+deb12u8not affected
Debianpython3.11bookworm-security3.11.2-6+deb12u9not affected
Ubuntupypy3nobleNot reportedvulnerable
Ubuntupython3.11nobleNot reportednot affected
Ubuntupython3.12noble3.12.3-1ubuntu0.7fixed
Ubuntuidle-python3.12noble3.12.3-1ubuntu0.7fixed
Ubuntulibpython3.12-devnoble3.12.3-1ubuntu0.7fixed
Ubuntulibpython3.12-minimalnoble3.12.3-1ubuntu0.7fixed
Ubuntulibpython3.12-stdlibnoble3.12.3-1ubuntu0.7fixed
Ubuntulibpython3.12-testsuitenoble3.12.3-1ubuntu0.7fixed
Ubuntulibpython3.12t64noble3.12.3-1ubuntu0.7fixed
Ubuntupython3.12-devnoble3.12.3-1ubuntu0.7fixed
Ubuntupython3.12-docnoble3.12.3-1ubuntu0.7fixed
Ubuntupython3.12-examplesnoble3.12.3-1ubuntu0.7fixed
Ubuntupython3.12-fullnoble3.12.3-1ubuntu0.7fixed
Ubuntupython3.12-minimalnoble3.12.3-1ubuntu0.7fixed
Ubuntupython3.12-nopienoble3.12.3-1ubuntu0.7fixed
Ubuntupython3.12-venvnoble3.12.3-1ubuntu0.7fixed
Alpinepython33.193.11.13-r0fixed
Alpinepython33.203.12.11-r0fixed
Alpinepython33.213.12.11-r0fixed
Alpinepython33.223.12.11-r0fixed
Alpinepython33.233.12.11-r0fixed
Alpinepython33.243.12.11-r0fixed
Alpinepython3-tkinter3.233.12.11-r0fixed
Alpinepython3-tkinter3.243.12.11-r0fixed
Ubuntupython3.1224.043.12.0-1vulnerable
Ubuntupython3.1224.043.12.0-5vulnerable
Ubuntupython3.1224.043.12.0-6vulnerable
Ubuntupython3.1224.043.12.0-7vulnerable
Ubuntupython3.1224.043.12.1-2vulnerable
Ubuntupython3.1224.043.12.2-1vulnerable
Ubuntupython3.1224.043.12.2-4build3vulnerable
Ubuntupython3.1224.043.12.2-4build4vulnerable
Ubuntupython3.1224.043.12.2-5ubuntu3vulnerable
Ubuntupython3.1224.043.12.3-1vulnerable
Ubuntupython3.1224.043.12.3-1ubuntu0.1vulnerable
Ubuntupython3.1224.043.12.3-1ubuntu0.2vulnerable
Ubuntupython3.1224.043.12.3-1ubuntu0.3vulnerable
Ubuntupython3.1224.043.12.3-1ubuntu0.4vulnerable
Ubuntupython3.1224.043.12.3-1ubuntu0.5vulnerable
Ubuntupython3.1224.043.12.3-1ubuntu0.6vulnerable
Ubuntupython3.1224.043.12.3-1ubuntu0.7fixed
Ubuntupython3.1425.103.14.0~a7-0ubuntu1vulnerable
Ubuntupython3.1425.103.14.0~b1-1vulnerable
Ubuntupython3.1425.103.14.0~b3-1vulnerable
Ubuntupython3.1425.103.14.0~rc1-1vulnerable
Ubuntupython3.1425.103.14.0~rc2-1vulnerable
Ubuntupython3.1425.103.14.0~rc3-1vulnerable
Ubuntupython3.1425.103.14.0-1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpypy3sourcesid7.3.20+dfsg-2not yet assignedNot reportedNot reported
Debianpypy3sourceforky7.3.20+dfsg-2not yet assignedNot reportedNot reported
Debianpypy3sourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debianpypy3sourcebookworm(unfixed)not yet assignedNot reportedNot reported
DebianjythonsourcesidNot affectedunimportantNot reportedNot reported
DebianjythonsourceforkyNot affectedunimportantNot reportedNot reported
DebianjythonsourcetrixieNot affectedunimportantNot reportedNot reported
DebianjythonsourcebookwormNot affectedunimportantNot reportedNot reported
Debianpython3.11sourcebookwormNot affectedunimportantNot reportedNot reported
Ubuntupython3.12debnoble3.12.3-1ubuntu0.7Not reportedNot reportedNot reported
Ubuntuidle-python3.12debnoble3.12.3-1ubuntu0.7Not reportedNot reportedNot reported
Ubuntulibpython3.12-devdebnoble3.12.3-1ubuntu0.7Not reportedNot reportedNot reported
Ubuntulibpython3.12-minimaldebnoble3.12.3-1ubuntu0.7Not reportedNot reportedNot reported
Ubuntulibpython3.12-stdlibdebnoble3.12.3-1ubuntu0.7Not reportedNot reportedNot reported
Ubuntulibpython3.12-testsuitedebnoble3.12.3-1ubuntu0.7Not reportedNot reportedNot reported
Ubuntulibpython3.12t64debnoble3.12.3-1ubuntu0.7Not reportedNot reportedNot reported
Ubuntupython3.12-devdebnoble3.12.3-1ubuntu0.7Not reportedNot reportedNot reported
Ubuntupython3.12-docdebnoble3.12.3-1ubuntu0.7Not reportedNot reportedNot reported
Ubuntupython3.12-examplesdebnoble3.12.3-1ubuntu0.7Not reportedNot reportedNot reported
Ubuntupython3.12-fulldebnoble3.12.3-1ubuntu0.7Not reportedNot reportedNot reported
Ubuntupython3.12-minimaldebnoble3.12.3-1ubuntu0.7Not reportedNot reportedNot reported
Ubuntupython3.12-nopiedebnoble3.12.3-1ubuntu0.7Not reportedNot reportedNot reported
Ubuntupython3.12-venvdebnoble3.12.3-1ubuntu0.7Not reportedNot reportedNot reported
Alpinepython3apk3.193.11.13-r0Not reportedALPINE-CVE-2025-4138Not reported
Alpinepython3apk3.203.12.11-r0Not reportedALPINE-CVE-2025-4138Not reported
Alpinepython3apk3.213.12.11-r0Not reportedALPINE-CVE-2025-4138Not reported
Alpinepython3apk3.223.12.11-r0Not reportedALPINE-CVE-2025-4138Not reported
Alpinepython3apk3.233.12.11-r0Not reportedALPINE-CVE-2025-4138Not reported
Alpinepython3apk3.243.12.11-r0Not reportedALPINE-CVE-2025-4138Not reported
Alpinepython3-tkinterapk3.233.12.11-r0Not reportedALPINE-CVE-2025-4138Not reported
Alpinepython3-tkinterapk3.243.12.11-r0Not reportedALPINE-CVE-2025-4138Not reported
Ubuntupython3.12deb24.043.12.3-1ubuntu0.7Not reportedUBUNTU-CVE-2025-4138Not reported
Ubuntupython3.14deb25.103.14.0-1Not reportedUBUNTU-CVE-2025-4138Not reported

Notes

[trixie] pypy3: Minor issue [bookworm] pypy3: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [pypy3]Affected
    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · amd64 · bookworm

      Affected

      usn · pypy3 · debian · bookworm; usn · pypy3 · debian · 12

    • 7.3.11+dfsg-2+deb12u3 · arm64 · bookworm

      Affected

      usn · pypy3 · debian · bookworm; usn · pypy3 · debian · 12

  • [pypy3-dev]Affected

    Source package: [pypy3]

    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Affected

      usn · pypy3 · debian · bookworm; usn · pypy3 · debian · 12

    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Affected

      usn · pypy3 · debian · bookworm; usn · pypy3 · debian · 12

  • [pypy3-doc]Affected

    Source package: [pypy3]

    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Affected

      usn · pypy3 · debian · bookworm; usn · pypy3 · debian · 12

    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Affected

      usn · pypy3 · debian · bookworm; usn · pypy3 · debian · 12

  • [pypy3-lib]Affected

    Source package: [pypy3]

    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · amd64 · bookworm

      Affected

      usn · pypy3 · debian · bookworm; usn · pypy3 · debian · 12

    • 7.3.11+dfsg-2+deb12u3 · arm64 · bookworm

      Affected

      usn · pypy3 · debian · bookworm; usn · pypy3 · debian · 12

  • Source package: [pypy3]

    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Affected

      usn · pypy3 · debian · bookworm; usn · pypy3 · debian · 12

    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Affected

      usn · pypy3 · debian · bookworm; usn · pypy3 · debian · 12

  • [pypy3-tk]Affected

    Source package: [pypy3]

    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · amd64 · bookworm

      Affected

      usn · pypy3 · debian · bookworm; usn · pypy3 · debian · 12

    • 7.3.11+dfsg-2+deb12u3 · arm64 · bookworm

      Affected

      usn · pypy3 · debian · bookworm; usn · pypy3 · debian · 12

  • [pypy3-venv]Affected

    Source package: [pypy3]

    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Affected

      usn · pypy3 · debian · bookworm; usn · pypy3 · debian · 12

    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Affected

      usn · pypy3 · debian · bookworm; usn · pypy3 · debian · 12

  • [idle-python3.11]Not affected

    Source package: [python3.11]

    Details (4)
    • 3.11.2-6+deb12u8 · all · bookworm

      Not affected

      usn · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u8 · all · bookworm

      Not affected

      usn · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · all · bookworm-security

      Not affected

      usn · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · all · bookworm-security

      Not affected

      usn · python3.11 · debian · bookworm

  • [jython]Not affected
    Details (2)
    • 2.7.3+repack1-1 · all · bookworm

      Not affected

      usn · jython · debian · bookworm

    • 2.7.3+repack1-1 · all · bookworm

      Not affected

      usn · jython · debian · bookworm

  • [jython-doc]Not affected

    Source package: [jython]

    Details (2)
    • 2.7.3+repack1-1 · all · bookworm

      Not affected

      usn · jython · debian · bookworm

    • 2.7.3+repack1-1 · all · bookworm

      Not affected

      usn · jython · debian · bookworm

  • [libpython3.11]Not affected

    Source package: [python3.11]

    Details (4)
    • 3.11.2-6+deb12u8 · amd64 · bookworm

      Not affected

      usn · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u8 · arm64 · bookworm

      Not affected

      usn · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · amd64 · bookworm-security

      Not affected

      usn · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · arm64 · bookworm-security

      Not affected

      usn · python3.11 · debian · bookworm

  • [libpython3.11-dbg]Not affected

    Source package: [python3.11]

    Details (4)
    • 3.11.2-6+deb12u8 · amd64 · bookworm

      Not affected

      usn · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u8 · arm64 · bookworm

      Not affected

      usn · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · amd64 · bookworm-security

      Not affected

      usn · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · arm64 · bookworm-security

      Not affected

      usn · python3.11 · debian · bookworm

  • [libpython3.11-dev]Not affected

    Source package: [python3.11]

    Details (4)
    • 3.11.2-6+deb12u8 · amd64 · bookworm

      Not affected

      usn · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u8 · arm64 · bookworm

      Not affected

      usn · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · amd64 · bookworm-security

      Not affected

      usn · python3.11 · debian · bookworm

    • 3.11.2-6+deb12u3 · arm64 · bookworm-security

      Not affected

      usn · python3.11 · debian · bookworm

[Debian 13 (Trixie)]

  • [pypy3]Affected
    Details (2)
    • 7.3.19+dfsg-2 · amd64 · trixie

      Affected

      usn · pypy3 · debian · 13

    • 7.3.19+dfsg-2 · arm64 · trixie

      Affected

      usn · pypy3 · debian · 13

  • [pypy3-dev]Affected

    Source package: [pypy3]

    Details (2)
    • 7.3.19+dfsg-2 · all · trixie

      Affected

      usn · pypy3 · debian · 13

    • 7.3.19+dfsg-2 · all · trixie

      Affected

      usn · pypy3 · debian · 13

  • [pypy3-doc]Affected

    Source package: [pypy3]

    Details (2)
    • 7.3.19+dfsg-2 · all · trixie

      Affected

      usn · pypy3 · debian · 13

    • 7.3.19+dfsg-2 · all · trixie

      Affected

      usn · pypy3 · debian · 13

  • [pypy3-lib]Affected

    Source package: [pypy3]

    Details (2)
    • 7.3.19+dfsg-2 · amd64 · trixie

      Affected

      usn · pypy3 · debian · 13

    • 7.3.19+dfsg-2 · arm64 · trixie

      Affected

      usn · pypy3 · debian · 13

  • Source package: [pypy3]

    Details (2)
    • 7.3.19+dfsg-2 · all · trixie

      Affected

      usn · pypy3 · debian · 13

    • 7.3.19+dfsg-2 · all · trixie

      Affected

      usn · pypy3 · debian · 13

  • [pypy3-tk]Affected

    Source package: [pypy3]

    Details (2)
    • 7.3.19+dfsg-2 · amd64 · trixie

      Affected

      usn · pypy3 · debian · 13

    • 7.3.19+dfsg-2 · arm64 · trixie

      Affected

      usn · pypy3 · debian · 13

  • [pypy3-venv]Affected

    Source package: [pypy3]

    Details (2)
    • 7.3.19+dfsg-2 · all · trixie

      Affected

      usn · pypy3 · debian · 13

    • 7.3.19+dfsg-2 · all · trixie

      Affected

      usn · pypy3 · debian · 13

Next results

Observed:

References