Path traversalin Apache Camel.
Proof of concept public (GitHub).
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Apache Camel Docling component. This issue affects Apache Camel: from 4.15.0 before 4.18.5, from 4.19.0 before 4.22.2. DoclingProducer builds the command line of the external docling tool and appends to it the custom arguments supplied in the CamelDoclingCustomArguments header, a list of strings whose flags the fix for CVE-2026-40047 restricted to an allowlist. That fix also introduced validatePathSafety to keep path-like argument values inside the intended directory, but the method only looked for relative traversal: it rejected a value containing a traversal sequence such as ../ and a value whose normalized form still held a .. element. It never checked whether a value was an absolute path, and an absolute path without traversal segments contains neither, so it passed unchanged.
- Upgrade Apache Camel to 4.18.5, 4.22.2 or later, whichever matches your release line.
- Can't upgrade today? Do not build the CamelDoclingCustomArguments header from values that originate outside the deployment, remove that header from messages that arrive from outside before they reach a docling endpoint, and make sure that consumers which map incoming message headers drop the Camel header namespace, so that only the route itself chooses the custom arguments.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 22 Sep 2026CVE ID reserved by apache.
- 26 Oct 2026Published in the CVE List.
- 26 Oct 2026CVE record last updated.
- 29 Oct 2026First public proof of concept on GitHub.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other Camel vulnerabilities
Same weakness: Path traversal
- camel.apache.org vendor-advisory
- issues.apache.org issue-tracking
- github.com patch
- github.com patch
- github.com patch
- camel.apache.org related
- camel.apache.org related
Patchminder. CVE-2026-95628: Path traversal in Apache Camel. https://patchminder.com/cve/cve-2026-95628/ (accessed 5 December 2026).