Advisory

DEBIAN-CVE-2026-29509

Also known as: CVE-2026-29509

Summary

The record has no summary.

Details

Patool before 4.0.5 contains a path traversal vulnerability in the safe_extract() function in patoolib/programs/py_tarfile.py when running on Python before 3.12, where the is_within_directory() helper uses os.path.commonprefix() for character-level string comparison instead of path-level comparison, allowing a crafted archive member path to bypass the containment check. Attackers can supply a malicious archive with specially crafted member paths to write arbitrary files.

Severity

Not rated by the source.

Dates

Published
2026-06-26 20:16 UTC
Modified
2026-10-26 11:47 UTC

Affected packages and fixes

patool

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 4.0.0-1+deb13u1 (ecosystem)

Fixed versions

4.0.0-1+deb13u1

Fix

  • Fixed version 4.0.0-1+deb13u1
    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.

patool

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 4.0.5-0.1 (ecosystem)

Fixed versions

4.0.5-0.1

Fix

  • Fixed version 4.0.5-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: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences