Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted reStructuredText to renderer
-
ExploitReference arbitrary local path in image directive
-
ImpactDocutils embeds readable file into HTML/ODT output disclosing contents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
|
| Exploitation Conditions | Exploitation requires that a deploying application (a) feeds attacker-controlled reStructuredText into Docutils' HTML or ODT writer and (b) has set file_insertion_enabled=False as a sandbox boundary; the flaw is that image directives were embedded anyway, bypassing that setting, so arbitrary local files readable by the Docutils process can be exfiltrated into the output. Disclosure is limited to files readable by the process account and to the HTML and ODT writers specifically. The decisive limiting factor is deployment: installations that never render untrusted RST, or that do not rely on file_insertion_enabled=False for isolation (where image embedding is expected default behavior), are not meaningfully exposed. |
| Impact | This is a genuine but bounded confidentiality issue rather than a drop-everything emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) scores 8.7 on the strength of high confidentiality impact (VC:H) with no integrity or availability effect (VI:N/VA:N) and no scope spread (SC/SI/SA:N), which is consistent with a file-disclosure primitive. Not in CISA KEV and no EPSS score was provided, so there is no evidence of active or widespread exploitation; the vendor priority label is 'this_week', aligning with a serious issue that warrants prompt patching but is not flagged emergency. No public exploit was identified in the input - the available references are the fixing commit, the affected source lines, the PyPI release, and a VulnCheck advisory, none of which is verified working exploit code. The most important caveat is exposure: the PR:N/UI:N rating treats the attacker-supplied reStructuredText as untrusted input to Docutils, but real-world risk depends entirely on whether a deploying application actually renders untrusted RST and relied on file_insertion_enabled=False as a security boundary - where that is not the case, practical risk is much lower than the 8.7 suggests. |
| Exploit ScenarioDerived | An application renders untrusted user-supplied reStructuredText to HTML or ODT (for example a docs, wiki, or comment-rendering service) and sets file_insertion_enabled=False expecting it to block local file reads. An attacker submits RST containing an image directive whose path points at a sensitive local file (such as a configuration file or credentials), and Docutils embeds that file's readable contents into the generated document, disclosing it to the attacker. No verified public exploit code was identified, though the vendor fix commit and a VulnCheck advisory are published. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 04, 2026
Local file disclosure in Docutils before 0.23.1 allows attacker-supplied reStructuredText to embed arbitrary files readable by the Docutils process into generated HTML or ODT documents, bypassing the file_insertion_enabled=False setting that deployments use as a sandbox boundary. The flaw is limited to applications that render untrusted RST through the HTML or ODT writers and rely on that setting for isolation; installations that do not process untrusted markup, or do not use file_insertion_enabled=False as a security control, are not meaningfully exposed. No public exploit was identified at time of analysis, and the vendor has released Docutils 0.23.1 with a fix.
RemediationAI
Upgrade to Docutils 0.23.1, which contains the vendor fix (commit a761540f7f6479be42948991a662f7b54e1f118e; release at https://pypi.org/project/docutils/0.23.1/); the patched writers emit a warning and refuse to embed the image when file_insertion_enabled is False. If an immediate upgrade is not possible, do not pass untrusted reStructuredText to the HTML or ODT writers, or run the conversion in an environment where the Docutils process cannot read sensitive local files - in affected versions, setting file_insertion_enabled=False is not a sufficient control because the writers bypass it. The vendor advisory is https://www.vulncheck.com/advisories/docutils-before-0.23.1-local-file-disclosure-via-image-directives.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Docutils is the Python reference implementation of reStructuredText parsing and rendering; its HTML writer (docutils/writers/_html_base.py) and ODT writer (docutils/writers/odf_odt/__init__.py) handle the image directive. The file_insertion_enabled setting is intended to prevent directives such as include from reading local files, but before 0.23.1 the writers still embedded image targets when :loading: embed was used or when the ODT writer inserted images, so an attacker-controlled RST document could name an arbitrary local path and have its contents pulled into the output. This is CWE-73 (External Control of File Name or Path): the document author controls the path passed to the writer's file-reading logic. The CPE cpe:2.3:a:docutils:docutils:*:*:*:*:*:*:*:* covers all versions prior to 0.23.1; the fix commit a761540f7f6479be42948991a662f7b54e1f118e adds an explicit check that refuses embedding when file_insertion_enabled is False. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N) reflects network-delivered input with high confidentiality impact and no integrity or availability effect, but exploitation in practice requires a deploying application to accept attacker-controlled RST and to rely on file_insertion_enabled=False for isolation.
Know when Docutils gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Attacker supplies untrusted RST input so PR:N/UI:N; embedding is automatic (AC:L); impact is pure local-file confidentiality disclosure, hence C:H with I:N/A:N and scope unchanged.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Docutils before 0.23.1 contains a local file disclosure vulnerability in the HTML and ODT writers that embed image directive files despite file_insertion_enabled being disabled. Attackers supplying reStructuredText can reference arbitrary local paths in image directives to have readable files embedded into generated HTML or ODT documents.
Articles & Coverage 1
Executive ViewAI
A high-severity flaw in Docutils (before 0.23.1) allows untrusted reStructuredText to be embedded with local files readable by the process, defeating a sandbox setting that deployments rely on for isolation. This matters only to teams that render untrusted RST, since it can leak sensitive documents into generated HTML or ODT outputs. Teams processing only trusted markup are not meaningfully exposed, but any internet-facing or multi-tenant rendering pipeline should treat this as a direct confidentiality risk.
Vendor-released patch: Docutils 0.23.1
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
TeX macro injection in the Docutils LaTeX writer lets attackers who supply reStructuredText smuggle an \input macro into
Cross-site scripting in Docutils before 0.23.1 lets an attacker who supplies reStructuredText inject HTML through the im
EUVD-2026-144248
GHSA-7284-627f-6q4p
NVD
CVE.org
Exploit-DB