Intel

AIKIDO-2026-275773

docling-slim is vulnerable to Path Traversal

Path TraversalGHSA-4xhp-xg4w-8ppm Published Today

69

Medium Risk

This Affects:

PYTHONdocling-slim
2.107.0 - 2.120.2
Fixed in 2.120.3
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

docling-slim is vulnerable to Path Traversal in versions 2.107.0 - 2.120.2.

How to fix this

Upgrade the docling-slim and/or the docling library to the patch version.