Home / Apache Software Foundation / Apache Camel / CVE-2026-95664
CVE-2026-95664: is it exploited, and which versions of Apache Software Foundation Apache Camel are affected and fixed?
CVE-2026-95664 is an improper Neutralization of Special Elements used in an Expression Language Statement vulnerability in Apache Software Foundation Apache Camel. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:39 UTC). Affected: Apache Camel from 4.8.0 before 4.18.5 and Apache Camel from 4.19.0 before 4.22.2 (CVE record by apache). Fixed in 4.18.5 and 4.22.2 (CVE record by apache). Severity: Medium (5.4, CVSS 3.1, from apache).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:39 UTC, CVE record November 19, 2026, 07:05 UTC and NVD November 19, 2026, 07:05 UTC.
What is CVE-2026-95664?
Apache Camel: Camel-AWS2-S3 Producer Evaluates Untrusted S3 Object Keys From the CamelAwsS3Key Header as Simple Expressions
Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection') vulnerability in Apache Camel AWS2-s3 component. This issue affects Apache Camel: from 4.8.0 before 4.18.5, from 4.19.0 before 4.22.2. For the object it uploads, reads or deletes, the camel-aws2-s3 producer takes the key from the CamelAwsS3Key message header and falls back to the keyName option configured on the endpoint only when that header is absent. Since 4.8.0, AWS2S3Utils.determineKey() also passed the resulting value to the Simple language whenever it contained ${ or $simple{, so that a route could use a dynamic key, and the evaluation applied to a value taken from the header as well as to the configured option. The header is not route configuration, however: the aws2-s3 consumer sets CamelAwsS3Key on the exchanges it creates to the key of the object it read, that is, the name of the object in the bucket. In a route that does nothing more than consume from one aws2-s3 endpoint and produce to another, the name of each consumed object therefore reached the producer, and a name containing either marker was evaluated as an expression, although the route author never asked for any evaluation, and configuring keyName on the producer did not prevent it, because the header took precedence. A key that a route copied into the header from other message content was evaluated in the same way. Anyone able to choose the name of an object in a bucket that such a route consumes, typically a principal allowed to upload to that bucket, could therefore have Simple expressions of their choosing evaluated in the Camel process. The Simple language can read JVM system properties, environment variables and configuration properties, which commonly carry credentials, and, where camel-bean is on the classpath, invoke methods on beans in the registry. The evaluated result became the key the producer used, so reading a value back additionally required the ability to see object names in the destination bucket, while a method invocation took effect without it; together with the need to name an object in a consumed bucket, this is why the severity is assessed medium. The bucket name went through the same evaluation, but the consumer only ever places the bucket configured on its own endpoint in a bucket header, never a value derived from a remote object, so the bucket name was not reachable in this way. Releases before 4.8.0 used the key from the header as given and are not affected. Users are recommended to upgrade to version 4.23.0, which fixes the issue. If users are on the 4.22.x releases stream, then they are suggested to upgrade to 4.22.2. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.5. The 4.8.x to 4.17.x and 4.19.x to 4.21.x release lines reached end of life before this issue was resolved and will not receive a fix, so deployments on them must move to a supported release. After upgrading, a key or bucket name supplied through a message header is used literally, so a route that put an unevaluated Simple expression in the CamelAwsS3Key or CamelAwsS3OverrideBucketName header must evaluate it in the route instead, for example with setHeader and simple(), or configure it as the keyName or bucketName option of the endpoint. For deployments that cannot upgrade immediately, do not let a key derived from an object name or from other untrusted message content reach an aws2-s3 producer unchecked: in routes that pass exchanges from an aws2-s3 consumer to an aws2-s3 producer, either remove the CamelAwsS3Key header before the producer with removeHeader(“CamelAwsS3Key”), so that the keyName configured on the endpoint is used, or reject exchanges whose CamelAwsS3Key header contains ${ or $simple{. Configuring keyName alone is not a workaround, because the header takes precedence over it. As defence in depth, allow only trusted principals to write to buckets that Camel routes consume.
From the CVE record by apache, last updated November 2, 2026, 18:25 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Apache Software Foundation | Apache Camel org.apache.camel:camel-aws2-s3 | from 4.8.0 before 4.18.5 from 4.19.0 before 4.22.2 | 4.18.5, 4.22.2 |
As the CVE record by apache states it, last updated November 2, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | camel | from 4.8.0 before 4.18.5 | application |
| apache | camel | from 4.19.0 before 4.22.2 | application |
NVD analysis (status Analyzed), last modified November 2, 2026, 19:18 UTC.
How severe is CVE-2026-95664?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.4 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N | apache |
| Medium 5.4 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N | CISA-ADP |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-95664 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, November 2, 2026)
- EPSS
- 1.06% probability of exploitation activity in the next 30 days, percentile 65.6 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-917 Improper Neutralization of Special Elements used in an Expression Language Statement
How do I fix it? (from the CVE record)
Users are recommended to upgrade to version 4.23.0, which fixes the issue. If users are on the 4.22.x releases stream, then they are suggested to upgrade to 4.22.2. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.5. The 4.8.x to 4.17.x and 4.19.x to 4.21.x release lines reached end of life before this issue was resolved and will not receive a fix, so deployments on them must move to a supported release. AWS2S3Utils.determineKey() and determineBucketName() now evaluate the Simple language only for the keyName and bucketName options configured on the endpoint, which the route author writes; a key supplied through the CamelAwsS3Key header, or a bucket name supplied through the CamelAwsS3OverrideBucketName header, is used literally. A route that put an unevaluated Simple expression in one of these headers must evaluate it in the route instead, for example with setHeader and simple(), or configure it as the keyName or bucketName option of the endpoint.
Is there a workaround? (from the CVE record)
For deployments that cannot upgrade immediately, do not let a key derived from an object name or from other untrusted message content reach an aws2-s3 producer unchecked: in routes that pass exchanges from an aws2-s3 consumer to an aws2-s3 producer, either remove the CamelAwsS3Key header before the producer with removeHeader("CamelAwsS3Key"), so that the keyName configured on the endpoint is used, or reject exchanges whose CamelAwsS3Key header contains ${ or $simple{. Configuring keyName alone is not a workaround, because the header takes precedence over it. As defence in depth, allow only trusted principals to write to buckets that Camel routes consume.
Where are the vendor advisories and references?
- Apache Camel Security Advisory - CVE-2026-95664 vendor-advisory
- CAMEL-24901 issue-tracking
- Fix on main, released in 4.23.0 (commit 1fd7a667913ad068c8571b39c96b0a9c2dd4f3ef) patch
- Backport to camel-4.22.x for 4.22.2 (commit 19a672aa791480bff6b61c0551c79b2fa079da6e) patch
- Backport to camel-4.18.x, released in 4.18.5 (commit 124bf3da3cfb5d8e1994471e1301b6421bfe96d2) patch
- Upgrade-guide documentation for the 4.22.x and 4.18.x lines placed on main (commit aa48bb8a90adfae80a657a9ef427002d6634af31) related
- Javadoc of the header and configuration contract in AWS2S3Utils on main (commit 60c2c38b98ebbbaf56c10aff491291afe13df474) related
- CAMEL-20971, the dynamic key and bucket name support added in 4.8.0 that introduced the evaluation related
- CVE-2026-78164, HTTP producers resolved property placeholders in message-supplied URI override headers (same family) related
- CVE-2026-83531, dynamic-router-control endpoint compiled predicate expressions supplied by control messages (same family) related
- CVE-2025-27636, Camel message header injection via improper filtering (distinct from this issue) related
Who found and reported it?
- Andrea Cosentino from Apache Software Foundation (finder)
- Andrea Cosentino from Apache Software Foundation (remediation developer)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- September 22, 2026
- Published
- October 26, 2026, 08:40 UTC
- CVE record updated
- November 2, 2026, 18:25 UTC by apache
- NVD
- Analyzed, last modified November 2, 2026, 19:18 UTC
- Last checked
- CVE list November 19, 2026, 07:05 UTC; NVD November 19, 2026, 07:05 UTC; KEV December 3, 2026, 15:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Apache Camel?
- Dec 3, 2026CVE-2026-135919 Apache Software Foundation Apache Camel: exposure of Data Element to Wrong Session
- Dec 3, 2026CVE-2026-135918 Apache Software Foundation Apache Camel: exposure of Data Element to Wrong Session
- Dec 3, 2026CVE-2026-135917 Apache Software Foundation Apache Camel: unintended Proxy or Intermediary
- Dec 3, 2026CVE-2026-135916 Apache Software Foundation Apache Camel: improper Neutralization of CRLF Sequences
- Dec 3, 2026CVE-2026-135915 Apache Software Foundation Apache Camel: authentication bypass (improper authentication)
- Dec 3, 2026CVE-2026-133005 Apache Software Foundation Apache Camel: deserialization of untrusted data
- Dec 3, 2026CVE-2026-132829 Apache Software Foundation Apache Camel: improper certificate validation
- Dec 3, 2026CVE-2026-132828 Apache Software Foundation Apache Camel: sensitive data sent in clear text
Questions about CVE-2026-95664
Is CVE-2026-95664 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:39 UTC. FIRST's EPSS gives it a 1.06% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Apache Software Foundation Apache Camel are affected by CVE-2026-95664?
Apache Camel from 4.8.0 before 4.18.5 and Apache Camel from 4.19.0 before 4.22.2, per the CVE record by apache. The tables above give every range the sources list.
Which version fixes CVE-2026-95664?
4.18.5 and 4.22.2, per the CVE record by apache. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-95664?
Medium (5.4, CVSS 3.1, from apache). The severity table above shows each score with its source.
Where is the official record of CVE-2026-95664?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.