CVE-2026-144963: Docutils before 0.23.1 TeX Injection via LaTeX Writer Image URIs
Docutils before 0.23.1 contains a TeX injection vulnerability in the LaTeX writer that allows attackers supplying reStructuredText to inject TeX macros via percent-encoded image URIs. Attackers can close the includegraphics argument and inject an input macro, embedding local files into compiled output even with rawenabled and fileinsertionenabled disabled.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pypi/docutilsto a version that resolves this vulnerability.Fixed in 0.23.1
Event History
Frequently Asked Questions
Who is exposed to this issue?
Deployments are exposed when they use Docutils before 0.23.1 to process attacker-supplied reStructuredText with the LaTeX writer and compile the resulting TeX. The issue concerns image URIs handled by that writer.
What does an attacker need to exploit it?
An attacker needs the ability to supply reStructuredText containing a crafted percent-encoded image URI. No privileges or user interaction are required, but successful exploitation has high attack complexity.
Do disabling raw content and file insertion prevent exploitation?
No. The injection can occur even when raw_enabled and file_insertion_enabled are disabled, because it is triggered through the LaTeX writer's handling of image URIs.
What is the impact of a successful exploit?
An attacker can inject TeX macros by closing the includegraphics argument and adding an input macro. This can embed local files into the compiled output; the provided vector indicates confidentiality impact without integrity or availability impact.