UBUNTU-CVE-2026-29509

Source
https://ubuntu.com/security/CVE-2026-29509
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-29509.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-29509
Upstream
Published
2026-06-26T20:16:00Z
Modified
2026-06-29T23:15:34.118248088Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N CVSS Calculator
  • 5.3 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

Patool before 4.0.5 contains a path traversal vulnerability in the safeextract() function in patoolib/programs/pytarfile.py when running on Python before 3.12, where the iswithindirectory() 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.

References

Affected packages

Ubuntu:16.04:LTS
patool

Package

Name
patool
Purl
pkg:deb/ubuntu/patool?arch=source&distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.7-1
1.8-1
1.10-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "patool",
            "binary_version": "1.10-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-29509.json"
Ubuntu:18.04:LTS
patool

Package

Name
patool
Purl
pkg:deb/ubuntu/patool?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.12-3

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "patool",
            "binary_version": "1.12-3"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-29509.json"
Ubuntu:20.04:LTS
patool

Package

Name
patool
Purl
pkg:deb/ubuntu/patool?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.12-3
1.12-3build1
1.12-4
1.12-5

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "patool",
            "binary_version": "1.12-5"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-29509.json"
Ubuntu:22.04:LTS
patool

Package

Name
patool
Purl
pkg:deb/ubuntu/patool?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.12-5

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "patool",
            "binary_version": "1.12-5"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-29509.json"
Ubuntu:24.04:LTS
patool

Package

Name
patool
Purl
pkg:deb/ubuntu/patool?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.12-5
2.*
2.0.0-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "patool",
            "binary_version": "2.0.0-2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-29509.json"
Ubuntu:25.10
patool

Package

Name
patool
Purl
pkg:deb/ubuntu/patool?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.1.3-1
4.*
4.0.0-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "patool",
            "binary_version": "4.0.0-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-29509.json"
Ubuntu:26.04:LTS
patool

Package

Name
patool
Purl
pkg:deb/ubuntu/patool?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*
4.0.0-1
4.0.3-1
4.0.4-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "patool",
            "binary_version": "4.0.4-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-29509.json"