CVE-2026-95664
Received Received - Intake

Expression Language Injection in Apache Camel

Vulnerability report for CVE-2026-95664, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-10-26

Last updated on: 2026-10-26

Assigner: Apache Software Foundation

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-10-26
Last Modified
2026-10-26
Generated
2026-10-26
AI Q&A
2026-10-26
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-917 The product constructs all or part of an expression language (EL) statement in a framework such as a Java Server Page (JSP) using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended EL statement before it is executed.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-95664 is an Expression Language Injection vulnerability in Apache Camel's camel-aws2-s3 component. It affects versions from 4.8.0 to 4.18.4, 4.19.0 to 4.22.1, and 4.23.0 before the fix. When a route consumes objects from one S3 bucket and produces them to another, the object key from the source bucket is passed to the producer. If this key contains Simple expressions like ${...} or $simple{...}, it is evaluated, allowing attackers with upload permissions to inject malicious expressions. This could lead to accessing sensitive JVM properties, environment variables, or invoking registry bean methods.

Detection Guidance

To detect this vulnerability, inspect Apache Camel AWS2-s3 routes that consume from one S3 bucket and produce to another. Check if CamelAwsS3Key headers contain ${ or $simple{ patterns. Use logging or monitoring to identify unexpected Simple expression evaluations in S3 operations.

Impact Analysis

An attacker with upload permissions to a source S3 bucket could exploit this to execute Simple expressions in the Camel process. This may allow them to read sensitive data like credentials from JVM properties or environment variables, or invoke methods on registry beans. The impact requires the ability to name objects in the source bucket and, for reading results, access to the destination bucket. The severity is assessed as medium due to these constraints.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, such as credentials or environment variables, which may violate compliance requirements under GDPR (data protection) or HIPAA (healthcare data privacy). Exposure of such data could result in regulatory penalties or breaches of confidentiality obligations.

Mitigation Strategies
  • Upgrade Apache Camel to version 4.23.0, 4.22.2, or 4.18.5 depending on your release stream.
  • If upgrading is not possible, remove the CamelAwsS3Key header before the producer using removeHeader('CamelAwsS3Key') or reject exchanges with CamelAwsS3Key headers containing ${ or $simple{.
  • Restrict write permissions to S3 buckets consumed by Camel routes to trusted principals only.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-95664. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart