Skip to content
CriticalVulnerability

CVE-2026-40047: Apache Camel Docling component argument injection and directory traversal

Identifier
CVE-2026-40047
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.

Summary

CVE-2026-40047 is an argument injection flaw in the camel-docling component of Apache Camel, which runs the external docling command-line tool through ProcessBuilder. Custom arguments from the CamelDoclingCustomArguments header and path-bearing headers were validated with a denylist and a literal '../' check, letting attackers pass unintended docling flags and traversal sequences. The issue affects Apache Camel from 4.15.0 before 4.18.3; shell command injection was not possible because the list-based ProcessBuilder form does not invoke a shell.

Mitigation

Upgrade to a release containing the CAMEL-23212 fix: Apache Camel 4.19.0 or later (such as 4.20.0) on the mainline, or 4.18.3 for the 4.18.x LTS stream. As defence in depth, avoid mapping untrusted message content into the CamelDoclingCustomArguments header and path-bearing headers, and strip Camel-internal headers from messages arriving from untrusted producers.