docling-slim is vulnerable to Path Traversal
69
Medium Risk
The OpenDocument backend resolves the xlink:href attribute of a draw:image element as a filesystem path when the referenced image is not found inside the document archive. A crafted OpenDocument file can point that reference at an absolute local path, and the backend reads the file and embeds its bytes into the converted output. Before the fix this happens regardless of the enable_local_fetch and enable_remote_fetch settings and lets document content alone read arbitrary local files such as /etc/passwd. The fix resolves external image references through ImageResourceLoader so the fetch toggles are enforced and rejects extension-less paths.
You are affected if you are using a version that falls within the vulnerable range and you convert untrusted OpenDocument files whose image references can contain document-controlled paths.
docling-slim is vulnerable to Path Traversal in versions 2.107.0 - 2.120.2.
Upgrade the docling-slim and/or the docling library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant