Advisory

UBUNTU-CVE-2025-4138

Also known as: CVE-2025-4138

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2025-06-03 13:15 UTC
Modified
2026-04-22 16:01 UTC

Affected packages and fixes

python3.12

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 3.12.3-1ubuntu0.7 (ecosystem)

Fixed versions

3.12.3-1ubuntu0.7

Fix

  • Fixed version 3.12.3-1ubuntu0.7
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python3.14

Debian packages (deb) · Ubuntu 25.10

Affected

  • introduced 0, fixed 3.14.0-1 (ecosystem)

Fixed versions

3.14.0-1

Fix

  • Fixed version 3.14.0-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences