# CVE-2026-95664: Apache Camel: Camel-AWS2-S3 Producer Evaluates Untrusted S3 Object Keys From the CamelAwsS3Key Header as Simple Expressions

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.4
- **CVSS:** 5.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.22% (percentile 68, 2026-11-26)
- **CWE:** CWE-917
- **Published:** 2026-10-26T08:40:32.068Z
- **Modified:** 2026-11-02T19:18:12.223Z

## Who should check

- Anyone running Apache Software Foundation Apache Camel \>= 4.8.0, \< 4.18.5; \>= 4.19.0, \< 4.22.2

## Description

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.

## Affected and fixed versions

- Apache Software Foundation Apache Camel: \>= 4.8.0, \< 4.18.5; \>= 4.19.0, \< 4.22.2 (cvelist)

## Mitigation

- Upgrade Apache Camel to 4.22.2 or later.
- Vendor workaround: 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-95664. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-95664.md
Affected: Apache Software Foundation Apache Camel >= 4.8.0, < 4.18.5; >= 4.19.0, < 4.22.2
Fixed in: Apache Software Foundation Apache Camel 4.18.5, Apache Software Foundation Apache Camel 4.22.2

Steps:
1. Search this machine and project for Apache Software Foundation Apache Camel: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-95664 being exploited?

There is no confirmed exploitation: CVE-2026-95664 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-95664?

Medium: CVSS 5.4 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-95664?

Apache Software Foundation Apache Camel \>= 4.8.0, \< 4.18.5; \>= 4.19.0, \< 4.22.2.

### Is there a fix for CVE-2026-95664?

Yes. Fixed in Apache Software Foundation Apache Camel 4.18.5, Apache Software Foundation Apache Camel 4.22.2. Upgrade Apache Camel to 4.22.2 or later. Vendor workaround: 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.

### How do I check if I'm affected by CVE-2026-95664?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://camel.apache.org/security/CVE-2026-95664.html>
- patch: <https://github.com/apache/camel/pull/26746>
- patch: <https://github.com/apache/camel/pull/26840>
- patch: <https://github.com/apache/camel/pull/26842>
- patch: <https://github.com/apache/camel/pull/26841>
- patch: <https://github.com/apache/camel/pull/26889>
- other: <https://issues.apache.org/jira/browse/CAMEL-24901>
- other: <https://issues.apache.org/jira/browse/CAMEL-20971>
- other: <https://camel.apache.org/security/CVE-2026-78164.html>
- other: <https://camel.apache.org/security/CVE-2026-83531.html>
- other: <https://camel.apache.org/security/CVE-2025-27636.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-95664>

HTML: <https://flawdb.com/CVE-2026-95664> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-95664>
