# CVE-2026-144965: Docutils before 0.23.1 Local File Disclosure via Image Directives

Source: https://aplosec.si/cve/CVE-2026-144965/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-144965

High 8.7 · Reported · Fixed in 0.23.1 · CWE-73 · PyPI

# Docutils before 0.23.1 Local File Disclosure via Image Directives

CVE-2026-144965 · published 2026-12-04

In plain words: this type of bug lets someone read or write files outside the folder they should be limited to (path traversal). A fixed release is listed.

## Summary

CVE-2026-144965 affects Docutils (PyPI) < 0.23.1: Local File Disclosure via Image Directives (CWE-73). Fixed in 0.23.1. CVSS 4.0 base score 8.7 (High), assigned by VulnCheck. Published 2026-12-04 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

Upgrade Docutils to 0.23.1 or later. Releases in the affected range (< 0.23.1) are vulnerable. See the linked advisory for details on affected release lines.

## Timeline

- 2026-12-04 CVE published

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/docutils-before-0.23.1-local-file-disclosure-via-image-directives](https://www.vulncheck.com/advisories/docutils-before-0.23.1-local-file-disclosure-via-image-directives)

- [Fix commithttps://github.com/docutils/docutils/commit/a761540f7f6479be42948991a662f7b54e1f118e](https://github.com/docutils/docutils/commit/a761540f7f6479be42948991a662f7b54e1f118e)

- [Referencehttps://pypi.org/project/docutils/0.23.1/](https://pypi.org/project/docutils/0.23.1/)

- [Vulnerable codehttps://github.com/docutils/docutils/blob/7736f5a7cdf287b85204d5ffe50b141e97bf7448/docutils/docutils/writers/_html_base.py#L1166-L1186](https://github.com/docutils/docutils/blob/7736f5a7cdf287b85204d5ffe50b141e97bf7448/docutils/docutils/writers/_html_base.py#L1166-L1186)

- [Vulnerable codehttps://github.com/docutils/docutils/blob/7736f5a7cdf287b85204d5ffe50b141e97bf7448/docutils/docutils/writers/odf_odt/__init__.py#L2124-L2166](https://github.com/docutils/docutils/blob/7736f5a7cdf287b85204d5ffe50b141e97bf7448/docutils/docutils/writers/odf_odt/__init__.py#L2124-L2166)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-144965](https://www.cve.org/CVERecord?id=CVE-2026-144965)

- [NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-144965](https://nvd.nist.gov/vuln/detail/CVE-2026-144965)

**Severity:** High 8.7 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-144965)

**Package:** Docutils

**Ecosystem:** PyPI

**Affected:** < 0.23.1

**Fixed:** 0.23.1

**Weakness:** CWE-73

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
