CVE-2026-144963
Description
A flaw was found in docutils. A remote attacker can exploit this issue by supplying specially crafted reStructuredText documents containing percent-encoded image Uniform Resource Identifiers (URIs) to the LaTeX writer. This allows the attacker to inject arbitrary TeX typesetting commands and embed local system files into the compiled document, leading to unauthorized information disclosure.
Statement
This flaw has been rated as Moderate severity for Red Hat because successful exploitation requires processing untrusted reStructuredText content specifically using the LaTeX writer backend. When transforming malicious input into TeX markup, specially constructed image URIs can escape arguments to insert macro instructions that disclose local file contents in the generated output. Standard docutils usage with trusted inputs or alternative output backends like HTML is unaffected by this issue.
Mitigation
Avoid processing untrusted reStructuredText input using the LaTeX writer backend. Where rendering untrusted content into LaTeX documents is required, run the docutils processing workflow inside a sandboxed environment or unprivileged container with restricted filesystem access to prevent local file exposure. Alternatively, configure applications to output HTML or other non-LaTeX formats when handling untrusted documents.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 5.9 | N/A | 5.9 |
| Attack Vector | Network | N/A | Network |
| Attack Complexity | High | N/A | High |
| Privileges Required | None | N/A | None |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | High | N/A | High |
| Integrity Impact | None | N/A | None |
| Availability Impact | None | N/A | None |
Vector
Red Hat: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
cve.org: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Understanding the Weakness (CWE)
Access Control
Technical Impact: Bypass Protection Mechanism
In some cases, injectable code controls authentication; this may lead to a remote vulnerability.
Access Control
Technical Impact: Gain Privileges or Assume Identity
Injected code can access resources that the attacker is directly prevented from accessing.
Integrity,Confidentiality,Availability
Technical Impact: Execute Unauthorized Code or Commands
When a product allows a user's input to contain code syntax, it might be possible for an attacker to craft the code in such a way that it will alter the intended control flow of the product. As a result, code injection can often result in the execution of arbitrary code. Code injection attacks can also lead to loss of data integrity in nearly all cases, since the control-plane data injected is always incidental to data recall or writing.
Non-Repudiation
Technical Impact: Hide Activities
Often the actions performed by injected control code are unlogged.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.