Bug 2512418

Summary: CVE-2026-61632 python-pymdown-extensions: PyMdown Extensions: Information disclosure via path traversal in b64 extension [fedora-all]
Product: [Fedora] Fedora Reporter: Marian Rehak <mrehak>
Component: python-pymdown-extensionsAssignee: Davide Cavalca <davide>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 45CC: davide, mkdocs-sig
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["6e09fc24-7cb4-4906-9bf6-abd23b0f0061"]}
Fixed In Version: python-pymdown-extensions-12.3-1.fc46 python-pymdown-extensions-12.3-1.fc45 python-pymdown-extensions-12.3-2.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-11-08 08:31:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2512227    

Description Marian Rehak 2026-08-07 07:59:12 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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 base_path with os.path.normpath and opening the result directly, without verifying that the resolved path stays inside base_path. 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.

Comment 1 Aoife Moloney 2026-08-17 15:48:54 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.

Comment 2 Fedora Update System 2026-11-08 08:27:40 UTC
FEDORA-2026-de1da3cf3b (python-pymdown-extensions-12.3-1.fc46) has been submitted as an update to Fedora 46.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-de1da3cf3b

Comment 3 Fedora Update System 2026-11-08 08:31:53 UTC
FEDORA-2026-de1da3cf3b (python-pymdown-extensions-12.3-1.fc46) has been pushed to the Fedora 46 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2026-11-08 08:41:10 UTC
FEDORA-2026-b252d555e1 (python-pymdown-extensions-12.3-1.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-b252d555e1

Comment 5 Fedora Update System 2026-11-08 09:31:36 UTC
FEDORA-2026-f3f8679e02 (python-pymdown-extensions-12.3-2.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-f3f8679e02

Comment 6 Fedora Update System 2026-11-09 02:25:18 UTC
FEDORA-2026-f3f8679e02 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-f3f8679e02`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-f3f8679e02

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2026-11-09 05:22:48 UTC
FEDORA-2026-b252d555e1 has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-b252d555e1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-b252d555e1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2026-11-17 01:16:03 UTC
FEDORA-2026-b252d555e1 (python-pymdown-extensions-12.3-1.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2026-11-17 01:30:08 UTC
FEDORA-2026-f3f8679e02 (python-pymdown-extensions-12.3-2.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.