Description
docling-core 2.5.0 before 2.103.0 contains a local file disclosure vulnerability that allows attackers to read local images by supplying plain filesystem paths in ImageRef URIs, bypassing the allow_image_file_uri gate. Attackers can submit crafted DoclingDocument JSON or YAML that, when exported with ImageRefMode.EMBEDDED or rendered to HTML, embeds readable local image files as base64 and reveals path existence.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| docling-project | docling-core | 2.5.0 – < 2.103.0 | 2.103.0 |
References
- GitHub Security Advisory (GHSA-jx5c-6gmw-72m3) vendor-advisory
- https://github.com/docling-project/docling-core/commit/f952fc5d4c68fb673043c7c9f9c4390052959517 patch
- docling-core v2.103.0 Release Notes release-notes
- https://github.com/docling-project/docling-core/pull/900 patch issue-tracking
- https://github.com/docling-project/docling-core/blob/v2.102.0/docling_core/types/doc/common/reference.py technical-description
- https://github.com/docling-project/docling-core/blob/v2.102.0/docling_core/types/doc/document.py technical-description
- VulnCheck Advisory: docling-core through 2.102.0 Local File Disclosure via Plain Path ImageRef third-party-advisory