CVE-2026-66907: CWE-23 Relative path traversal in Apache Software Foundation Apache Camel
Description
CVE-2026-66907 is a relative path traversal vulnerability in the Apache Camel Google Storage component. It affects versions from 4.0.0 before 4.14.9, from 4.15.0 before 4.18.4, and from 4.19.0 before 4.22.0. The vulnerability arises because the component downloads Google Cloud Storage objects to the local filesystem without properly normalizing or restricting the destination path, allowing crafted object names containing parent-directory segments to escape the intended download directory. This can lead to arbitrary file creation or overwriting with the privileges of the Camel process. A fix is available in Apache Camel versions 4.14.9, 4.18.4, and 4.22.0.
CVSS v3.1
Score 7.5high
Affected software
Apache Software Foundation
Apache Camel
pkg:maven/Apache Software Foundation/org.apache.camel:camel-google-storageRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Apache Camel Google Storage consumer downloads objects to the local filesystem when the downloadFileName option is set. If downloadFileName contains no expression token, the consumer appends the remote object name directly to it without lexical normalization or containment checks. Google Cloud Storage object names can include parent-directory segments (e.g., '../'), which are not sanitized or restricted by default. This allows an attacker who can influence object names in the bucket to cause Camel to write files outside the intended directory, potentially overwriting critical files with the privileges of the Camel process. The vulnerability affects Apache Camel versions >=4.0.0 <4.14.9, >=4.15.0 <4.18.4, and >=4.19.0 <4.22.0. The issue is fixed in versions 4.14.9, 4.18.4, and 4.22.0. Mitigations include upgrading to fixed versions, setting the filter option to restrict object names to simple single-segment names, or using an explicit downloadFileName expression that does not propagate the remote path.
Potential Impact
An attacker able to control or influence object names in a Google Cloud Storage bucket consumed by Apache Camel can cause arbitrary files to be created or overwritten on the local filesystem outside the intended directory. This can lead to loss of integrity of local files and potentially escalate to further compromise depending on the privileges of the Camel process and the files overwritten. The vulnerability does not affect the producer side or other Camel file-download consumers, only the camel-google-storage consumer.
Mitigation Recommendations
A fix is available in Apache Camel versions 4.14.9, 4.18.4, and 4.22.0. Users are strongly recommended to upgrade to one of these versions. For deployments that cannot upgrade immediately, set the filter option to a regular expression that only accepts simple single-segment object names, excluding any names with path separators or parent-directory segments. Alternatively, configure downloadFileName with an explicit expression that uses ${file:onlyname} instead of the implicit ${file:name} to avoid propagating remote paths. Treat object names in externally writable buckets as untrusted input and avoid deriving local filesystem paths directly from them.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-07-28T09:28:37.811Z
- State
- PUBLISHED
- Is Cloud Service
- true
Threat ID: 6a8c7117acd9273b49d27da5
Added to database: 08/24/2026, 16:28:07 UTC
Last enriched: 09/10/2026, 10:07:55 UTC
Last updated: 10/08/2026, 18:48:47 UTC
Views: 86
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.