Impact
Apache Camel's Docling component suffers from an incomplete path validation flaw. The validatePathSafety helper, introduced to block traversal sequences, fails to detect absolute path values. As a result, an attacker can inject custom arguments that point the external docling tool at any directory the Camel process can read, effectively bypassing the intended working-directory restriction. This enables a privilege‑escape style attack that could expose arbitrary files or configuration data.
Affected Systems
Apache Camel versions 4.15.0 through 4.18.4, 4.19.0 through 4.22.1, and 4.22.x before the 4.22.2 release are vulnerable. The issue applies across the Apache Camel project maintained by the Apache Software Foundation.
Risk and Exploitability
The CVSS score of 5.4 classifies this as a moderate severity vulnerability. Although the EPSS score is unavailable, the vulnerability is not listed in the CISA KEV catalog, suggesting low yet plausible exploitation risk. Attackers can trigger the flaw by supplying a crafted CamelDoclingCustomArguments header in a message that bypasses header filtering (e.g., JMS or Kafka consumers). Because the flaw only requires manipulating header values, the attack effort is low, and the potential impact includes unauthorized access to files outside the intended directory.
OpenCVE Enrichment