CVE-2023-32309
Arbitrary file inclusion with the pymdowm-snippets extension
Also known as GHSA-jh85-wwv9-24hv, PYSEC-2026-1824
Mitigation
- Upgrade pymdown-extensions to 10.0 or later.
Who should check
- Projects that depend on PyPI package pymdown-extensions (>= 1.5, < 10.0)
- Anyone running facelessuser pymdown-extensions >= 1.5, < 10.0
Vulnerability facts
- Affected
- pymdown-extensions >= 1.5, < 10.0
- Fixed in
- 10.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 1.79% chance of exploitation in 30 days (percentile 79, 2026-11-26)
- CWE
- CWE-22
- Modified
Description
PyMdown Extensions is a set of extensions for the `Python-Markdown` markdown project. In affected versions an arbitrary file read is possible when using include file syntax. By using the syntax `--8<--"/etc/passwd"` or `--8<--"/proc/self/environ"` the content of these files will be rendered in the generated documentation. Additionally, a path relative to a specified, allowed base path can also be used to render the content of a file outside the specified base paths: `--8<-- "../../../../etc/passwd"`. Within the Snippets extension, there exists a `base_path` option but the implementation is vulnerable to Directory Traversal. The vulnerable section exists in `get_snippet_path(self, path)` lines 155 to 174 in snippets.py. Any readable file on the host where the plugin is executing may have its content exposed. This can impact any use of Snippets that exposes the use of Snippets to external users. It is never recommended to use Snippets to process user-facing, dynamic content. It is designed to process known content on the backend under the control of the host, but if someone were to accidentally enable it for user-facing content, undesired information could be exposed. This issue has been addressed in version 10.0. Users are advised to upgrade. Users unable to upgrade may restrict relative paths by filtering input.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI pymdown-extensions | >= 1.5, < 10.0 | 10.0 | osv |
| facelessuser pymdown-extensions | >= 1.5, < 10.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-32309. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-32309.md Affected: pymdown-extensions >= 1.5, < 10.0 Fixed in: 10.0 Steps: 1. Search this machine and project for pymdown-extensions (PyPI), facelessuser pymdown-extensions: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2023-32309 being exploited?
There is no confirmed exploitation: CVE-2023-32309 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.79% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-32309?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2023-32309?
pymdown-extensions >= 1.5, < 10.0.
Is there a fix for CVE-2023-32309?
Yes. Fixed in 10.0. Upgrade pymdown-extensions to 10.0 or later.
How do I check if I'm affected by CVE-2023-32309?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.