UBUNTU-CVE-2026-61632

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

PyMdown Extensions is a set of extensions for the Python-Markdown markdown project. In versions up to and including 10.21.3, the b64 extension is vulnerable to a path traversal that discloses arbitrary files: it inlines images referenced by <img src="..."> by joining the src onto the configured basepath with os.path.normpath and opening the result directly, without verifying that the resolved path stays inside basepath. As a result, an src containing ../ sequences or an absolute path reads a file outside base_path as long as it has an allowed image extension (.png, .jpg, .jpeg, .gif, .svg), and the file's contents are then base64-encoded into the rendered output, disclosing them. An application that renders untrusted Markdown with pymdownx.b64 enabled can therefore leak the contents of image-extension files readable by the process to whoever controls the Markdown or views the output, a targeted file-read bounded by the extension check. This issue has been fixed in version 11.0.

References

Affected packages

Ubuntu:14.04:LTS
python-markdown

Package

Name
python-markdown
Purl
pkg:deb/ubuntu/python-markdown?arch=source&distro=trusty

Affected ranges

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

Affected versions

2.*
2.3.1-1
2.3.1-2
2.4-1
2.4-1ubuntu0.14.04.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.4-1ubuntu0.14.04.1",
            "binary_name": "python-markdown"
        },
        {
            "binary_version": "2.4-1ubuntu0.14.04.1",
            "binary_name": "python3-markdown"
        }
    ]
}

Database specific

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

Package

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

Affected ranges

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

Affected versions

1.*
1.0.1-7
1.0.1-8

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.0.1-8",
            "binary_name": "markdown"
        }
    ]
}

Database specific

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

Package

Name
python-markdown
Purl
pkg:deb/ubuntu/python-markdown?arch=source&distro=xenial

Affected ranges

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

Affected versions

2.*
2.6.2-1
2.6.3-1
2.6.4-1
2.6.5-1
2.6.5-2
2.6.6-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.6.6-1",
            "binary_name": "python-markdown"
        },
        {
            "binary_version": "2.6.6-1",
            "binary_name": "python3-markdown"
        }
    ]
}

Database specific

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

Package

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

Affected ranges

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

Affected versions

1.*
1.0.1-9
1.0.1-10

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.0.1-10",
            "binary_name": "markdown"
        }
    ]
}

Database specific

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

Package

Name
python-markdown
Purl
pkg:deb/ubuntu/python-markdown?arch=source&distro=bionic

Affected ranges

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

Affected versions

2.*
2.6.9-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.6.9-1",
            "binary_name": "python-markdown"
        },
        {
            "binary_version": "2.6.9-1",
            "binary_name": "python3-markdown"
        }
    ]
}

Database specific

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

Package

Name
python-markdown
Purl
pkg:deb/ubuntu/python-markdown?arch=source&distro=focal

Affected ranges

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

Affected versions

3.*
3.1.1-2
3.1.1-2build1
3.1.1-3

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "3.1.1-3",
            "binary_name": "python-markdown"
        },
        {
            "binary_version": "3.1.1-3",
            "binary_name": "python3-markdown"
        }
    ]
}

Database specific

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

Package

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

Affected ranges

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

Affected versions

1.*
1.0.1-10

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.0.1-10",
            "binary_name": "markdown"
        }
    ]
}

Database specific

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

Package

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

Affected ranges

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

Affected versions

1.*
1.0.1-10.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.0.1-10.1",
            "binary_name": "markdown"
        }
    ]
}

Database specific

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

Package

Name
python-markdown
Purl
pkg:deb/ubuntu/python-markdown?arch=source&distro=jammy

Affected ranges

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

Affected versions

3.*
3.3.4-1
3.3.6-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "3.3.6-1",
            "binary_name": "python3-markdown"
        }
    ]
}

Database specific

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

Package

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

Affected ranges

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

Affected versions

1.*
1.0.1-12

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.0.1-12",
            "binary_name": "markdown"
        }
    ]
}

Database specific

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

Package

Name
python-markdown
Purl
pkg:deb/ubuntu/python-markdown?arch=source&distro=noble

Affected ranges

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

Affected versions

3.*
3.4.4-1
3.5.2-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "3.5.2-1",
            "binary_name": "python3-markdown"
        }
    ]
}

Database specific

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

Package

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

Affected ranges

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

Affected versions

1.*
1.0.1-14

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.0.1-14",
            "binary_name": "markdown"
        }
    ]
}

Database specific

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

Package

Name
python-markdown
Purl
pkg:deb/ubuntu/python-markdown?arch=source&distro=resolute

Affected ranges

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

Affected versions

3.*
3.8.2-2
3.10-1
3.10-2
3.10.2-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "3.10.2-1",
            "binary_name": "python3-markdown"
        }
    ]
}

Database specific

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