UBUNTU-CVE-2026-102991

Source
https://ubuntu.com/security/CVE-2026-102991
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-102991.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-102991
Upstream
Published
2026-10-02T00:00:00Z
Modified
2026-10-02T22:30:11Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

Mako is a template library written in Python. Prior to 1.4.2, on Windows, TemplateLookup.get_template() in mako/lookup.py resolves template URIs with posixpath, while Template.init() in mako/template.py validates them with os.path, which uses ntpath. A URI beginning with a drive designator causes ntpath to absorb the traversal segments before the leading dot-dot check, while posixpath resolution can escape the configured template directory. An application that passes attacker-controlled template names or include paths can disclose process-readable files on the same volume, and a targeted file containing Mako template syntax may also be parsed and executed as a template. Raw URL paths are generally normalized before reaching this form, but query strings, form or JSON bodies, route parameters, and dynamic include expressions can preserve it. This issue is fixed in version 1.4.2.

References

Affected packages

Ubuntu:22.04:LTS
mako

Package

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

Affected ranges

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

Affected versions

1.*
1.1.3+ds1-2
1.1.3+ds1-2ubuntu0.1
1.1.3+ds1-2ubuntu0.2

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "python3-mako",
            "binary_version":  "1.1.3+ds1-2ubuntu0.2"
        }
    ]
}

Database specific

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

Package

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

Affected ranges

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

Affected versions

1.*
1.2.4+ds-2
1.3.1-1
1.3.2-1
1.3.2-1ubuntu0.1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "python3-mako",
            "binary_version":  "1.3.2-1ubuntu0.1"
        }
    ]
}

Database specific

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

Package

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

Affected ranges

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

Affected versions

1.*
1.3.9-1
1.3.10-3
1.3.10-3build1
1.3.10-3ubuntu0.1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "python3-mako",
            "binary_version":  "1.3.10-3ubuntu0.1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-102991.json"
Ubuntu:Pro:16.04:LTS
mako

Package

Name
mako
Purl
pkg:deb/ubuntu/mako?arch=source&distro=esm-infra%2Fxenial

Affected ranges

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

Affected versions

1.*
1.0.2+ds1-1
1.0.3+ds1-1
1.0.3+ds1-1ubuntu1
1.0.3+ds1-1ubuntu1+esm1
1.0.3+ds1-1ubuntu1+esm2

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "python-mako",
            "binary_version":  "1.0.3+ds1-1ubuntu1+esm2"
        },
        {
            "binary_name":  "python3-mako",
            "binary_version":  "1.0.3+ds1-1ubuntu1+esm2"
        }
    ]
}

Database specific

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

Package

Name
mako
Purl
pkg:deb/ubuntu/mako?arch=source&distro=esm-infra%2Fbionic

Affected ranges

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

Affected versions

1.*
1.0.7+ds1-1
1.0.7+ds1-1ubuntu0.2
1.0.7+ds1-1ubuntu0.2+esm1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "python-mako",
            "binary_version":  "1.0.7+ds1-1ubuntu0.2+esm1"
        },
        {
            "binary_name":  "python3-mako",
            "binary_version":  "1.0.7+ds1-1ubuntu0.2+esm1"
        }
    ]
}

Database specific

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

Package

Name
mako
Purl
pkg:deb/ubuntu/mako?arch=source&distro=esm-infra%2Ffocal

Affected ranges

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

Affected versions

1.*
1.0.7+ds1-1
1.1.0+ds1-1
1.1.0+ds1-1ubuntu1
1.1.0+ds1-1ubuntu2
1.1.0+ds1-1ubuntu2.1
1.1.0+ds1-1ubuntu2.1+esm1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "python-mako",
            "binary_version":  "1.1.0+ds1-1ubuntu2.1+esm1"
        },
        {
            "binary_name":  "python3-mako",
            "binary_version":  "1.1.0+ds1-1ubuntu2.1+esm1"
        }
    ]
}

Database specific

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