CVE-2026-44022: Docling Path Traversal Vulnerability
MODERATECVE-2026-44022 is a MODERATE (CVSS 5.5) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Docling libraries in the PyPI ecosystem. The issue involves potential path traversal via latex \includegraphics and \input commands. Remediation is available by upgrading affected packages to version 2.91.0.
CVE-2026-44022 at a Glance
Security Impact
CVSS: 5.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N).
How to Fix CVE-2026-44022
To remediate this vulnerability, upgrade all affected Docling dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install docling>=2.91.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show docling
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-44022, inspect your installed packages using pip:
pip show docling
Analyze the terminal output to locate any version of Docling in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.91.0), your application is affected.
Note: The pip show docling command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Docling, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-44022 Affected Docling Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
docling
|
PyPI |
≥ 2.73.0
< 2.91.0
|
2.91.0
|
References
Frequently Asked Questions
What is CVE-2026-44022?
Which Docling versions are affected?
What version fixes CVE-2026-44022?
Is docling affected?
What is the CVSS score of CVE-2026-44022?
What CWE is associated with CVE-2026-44022?
How can I check PyPI dependencies for CVE-2026-44022?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2j5p-7p5m-cvqr",
"modified" : "2026-07-20T21:33:51Z",
"published" : "2026-06-03T21:14:35Z",
"aliases" : [ "CVE-2026-44022" ],
"summary" : "Docling: Potential Path Traversal via LaTeX \\includegraphics and \\input Commands",
"details" : "### Impact\nThe LaTeX backend's handling of `\\includegraphics`, `\\input`, and `\\include` commands lacked path containment validation. Attackers could craft malicious LaTeX documents with path traversal sequences (e.g., `../../../etc/passwd`) to:\n- Read arbitrary files from the file system accessible to the process\n- Include sensitive files in the converted document output\n- Potentially access configuration files, credentials, or other sensitive data\n\n### Patches\nFixed in version 2.91.0. The fix implements strict path validation using `Path.resolve().is_relative_to()` to ensure all resolved paths remain within the base document directory. Attempts to traverse outside the base directory are logged and blocked.\n\n### Workarounds\nAvoid processing untrusted LaTeX documents. If processing is necessary, run in a sandboxed environment with restricted file system access.\n\n### References\n- Fix release: [v2.91.0](https://github.com/docling-project/docling/releases/tag/v2.91.0)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "docling"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.73.0"
}, {
"fixed" : "2.91.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/docling-project/docling/security/advisories/GHSA-2j5p-7p5m-cvqr"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-44022"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/docling-project/docling"
}, {
"type" : "WEB",
"url" : "https://github.com/docling-project/docling/releases/tag/v2.91.0"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/docling/PYSEC-2026-2145.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-03T21:14:35Z",
"nvd_published_at" : "2026-06-24T18:17:17Z"
}
}