Skip to main content

Docutils EUVDEUVD-2026-144248

| CVE-2026-144965 HIGH
External Control of File Name or Path (CWE-73)
2026-12-04 VulnCheck GHSA-7284-627f-6q4p
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted reStructuredText to renderer
  2. Exploit
    Reference arbitrary local path in image directive
  3. Impact
    Docutils 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Docutils 0 <0.23.1

Affected Packages

euvd docutils fix: 0.23.1

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

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Vendor-released patch: Docutils 0.23.1

Threat Intelligence Overview

Prevalence
High
widely-used Python reStructuredText library and core Sphinx dependency
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy