Local file disclosure in Docutils via image directives
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-73 and the CVSS impact.
Summary
Docutils before 0.23.1 contains a local file disclosure flaw in its HTML and ODT writers. They embed files referenced by image directives even when file_insertion_enabled is disabled, which is external control of a file name or path (CWE-73). An unauthenticated remote attacker who supplies reStructuredText can reference arbitrary local paths, so readable files get embedded into the generated HTML or ODT documents.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Docutils 0.23.1 fixes this flaw, so upgrade Docutils to version 0.23.1 or later.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
- Fix · CNA Docutils (docutils) Fixed in 0.23.1
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
Docutils 0.23.1
3 records Highest priority Priority MEDIUM 1 MEDIUM, 2 LOW
Other records, highest priority first
- TI-2026-104171 TeX injection in Docutils LaTeX writer embeds local filesPriority LOW 33
- TI-2026-104174 Cross-site scripting in Docutils via unescaped image alt textPriority LOW 21
Timeline
- 2026-12-04 Threatist record created from CVE-2026-144965
- 2026-12-04 Alias added: GHSA-7284-627f-6q4p
References
Other 3
- https://github.com/docutils/docutils/blob/7736f5a7cdf287b85204d5ffe50b141e97bf7448/docutils/docutils/writers/_html_base.py#L1166-L1186
- https://github.com/docutils/docutils/blob/7736f5a7cdf287b85204d5ffe50b141e97bf7448/docutils/docutils/writers/odf_odt/__init__.py#L2124-L2166
- https://pypi.org/project/docutils/0.23.1/
More docutils vulnerabilities
- TI-2026-104171 TeX injection in Docutils LaTeX writer embeds local files CVSS 4.0HIGH 8.2
- TI-2026-104174 Cross-site scripting in Docutils via unescaped image alt text CVSS 4.0MEDIUM 5.3
Sources
- CVE-2026-144965 · CVE Program
- CVE-2026-144965 · NVD
- GHSA-7284-627f-6q4p · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences