Skip to content
Heist/ feed
UnratedFix available

DEBIAN-CVE-2026-29509

Type: advisorySource: OSV1 source record

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.

Announced Group revision 1
Original source ↗

DEBIAN-CVE-2026-29509

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:DEBIAN-CVE-2026-29509

patool

Source reference: /affected/0/package/name

Affected versions
4.0.0-1

Source reference: /affected/0/versions

Fixed versions
4.0.0-1+deb13u1

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

patool

Source reference: /affected/1/package/name

Affected versions
4.0.0-1

Source reference: /affected/1/versions

4.0.1-1

Source reference: /affected/1/versions

4.0.2-1

Source reference: /affected/1/versions

4.0.3-1

Source reference: /affected/1/versions

4.0.4-1

Source reference: /affected/1/versions

Fixed versions
4.0.5-0.1

Source reference: /affected/1/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "4.0.0-1+deb13u1"
          }
        ]
      }
    ],
    "package": {
      "name": "patool",
      "purl": "pkg:deb/debian/patool?arch=source&distro=trixie",
      "ecosystem": "Debian:13"
    },
    "versions": [
      "4.0.0-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-29509.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "4.0.5-0.1"
          }
        ]
      }
    ],
    "package": {
      "name": "patool",
      "purl": "pkg:deb/debian/patool?arch=source&distro=forky",
      "ecosystem": "Debian:14"
    },
    "versions": [
      "4.0.0-1",
      "4.0.1-1",
      "4.0.2-1",
      "4.0.3-1",
      "4.0.4-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-29509.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#56730 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement