CVE-2026-40047: Apache Camel Docling component argument injection and directory traversal
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-40047
- Published
- Record updated
- 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.
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online