CVE-2026-144965: Docutils before 0.23.1 Local File Disclosure via Image Directives
Docutils before 0.23.1 contains a local file disclosure vulnerability in the HTML and ODT writers that embed image directive files despite fileinsertionenabled being disabled. Attackers supplying reStructuredText can reference arbitrary local paths in image directives to have readable files embedded into generated HTML or ODT documents.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Docutilsto a version that resolves this vulnerability.Fixed in 0.23.1
Event History
Frequently Asked Questions
Who is exposed to this vulnerability?
Applications using Docutils before 0.23.1 are exposed if they generate HTML or ODT from reStructuredText supplied by an attacker or other untrusted party. The affected output writers are the HTML and ODT writers.
What does an attacker need to exploit it?
An attacker needs to be able to supply reStructuredText that is processed by the affected HTML or ODT writer. They can use an image directive referencing an arbitrary local path; any file readable by the process generating the document may be embedded in the output.
Does disabling file insertion prevent exploitation?
No. The issue occurs even when file_insertion_enabled is disabled, because the affected writers embed image-directive files despite that setting.
How can I tell whether I may already be affected?
Review whether your application processed untrusted reStructuredText with a Docutils version earlier than 0.23.1 and produced HTML or ODT output. Inspect generated documents for embedded image content or image directives that reference local filesystem paths.