CVE-2026-46453
Received Received - Intake

Authorization Bypass in Apache Camel Elasticsearch Rest Client

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

Publication date: 2026-07-06

Last updated on: 2026-07-06

Assigner: Apache Software Foundation

Description

Improper Input Validation, Authorization Bypass Through User-Controlled Key vulnerability in Apache Camel ElasticSearch Rest Client. The camel-elasticsearch-rest-client component reads several Exchange headers to control its behaviour - SEARCH_QUERY (an advanced query body), OPERATION (which Elasticsearch operation to run), INDEX_NAME, INDEX_SETTINGS and ID. The string values of these header constants, defined in ElasticSearchRestClientConstant, are plain unprefixed names ('SEARCH_QUERY', 'OPERATION', 'INDEX_NAME', 'INDEX_SETTINGS', 'ID') rather than the 'Camel'-prefixed names used by every other Camel component (for example CamelSqlQuery, CamelMongoDbCriteria, CamelCqlQuery). Camel's inbound HTTP header filter, HttpHeaderFilterStrategy, blocks only header names that begin with 'Camel' or 'camel'. Because the Elasticsearch header names do not carry that prefix, they pass through the inbound filter unchanged. When a Camel route exposes an HTTP entry point (for example platform-http) in front of an elasticsearch-rest-client producer, an untrusted HTTP client can set these headers directly on its request and override the query and operation that the route author configured: reading every document in the index (SEARCH_QUERY with a match_all query), deleting documents (OPERATION set to Delete together with ID), or exfiltrating selected fields. No credentials are required and the producer reads the headers unconditionally. This issue affects Apache Camel: from 4.3.0 before 4.14.8, from 4.15.0 before 4.18.3, from 4.19.0 before 4.21.0. Users are recommended to upgrade to version 4.21.0, which fixes the issue. If users are on the 4.14.x LTS releases stream, then they are suggested to upgrade to 4.14.8. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.3. The fix renames the camel-elasticsearch-rest-client Exchange header constant string values (ID, SEARCH_QUERY, INDEX_SETTINGS, INDEX_NAME, OPERATION) to carry the Camel prefix (CamelElasticsearchId, CamelElasticsearchSearchQuery, CamelElasticsearchIndexSettings, CamelElasticsearchIndexName, CamelElasticsearchOperation) so that they are blocked by the inbound HttpHeaderFilterStrategy; the Java field names are unchanged. For deployments that cannot upgrade immediately, strip the affected headers from untrusted inbound messages before they reach the producer (for example removeHeader('SEARCH_QUERY'), removeHeader('OPERATION'), removeHeader('INDEX_NAME'), removeHeader('INDEX_SETTINGS') and removeHeader('ID') in front of the elasticsearch-rest-client endpoint), or apply a custom HeaderFilterStrategy that blocks these names.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

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

Affected Vendors & Products

Showing 6 associated CPEs
Vendor Product Version / Range
apache camel 4.3.0
apache camel 4.14.8
apache camel 4.15.0
apache camel 4.18.3
apache camel 4.19.0
apache camel 4.21.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-20 The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
CWE-639 The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Impact Analysis

This vulnerability can allow an attacker to bypass authorization controls and manipulate Elasticsearch operations through specially crafted HTTP headers.

  • Unauthorized access to all documents in an Elasticsearch index by using a match_all query.
  • Deletion of documents by setting the OPERATION header to Delete along with an ID.
  • Exfiltration of selected fields or sensitive data from Elasticsearch.

No credentials are required for these actions, making the impact significant for systems exposing the vulnerable component.

Executive Summary

CVE-2026-46453 is a medium-severity vulnerability in Apache Camel's camel-elasticsearch-rest-client component caused by improper input validation and authorization bypass through user-controlled keys.

The component reads several Exchange headers like SEARCH_QUERY, OPERATION, INDEX_NAME, INDEX_SETTINGS, and ID to control its behavior. These headers lack the usual 'Camel' prefix, so they bypass Camel's inbound HTTP header filtering, which only blocks headers starting with 'Camel' or 'camel'.

As a result, an untrusted HTTP client can directly set these headers in requests to override the configured Elasticsearch queries and operations, such as reading all documents, deleting documents, or exfiltrating data, without needing any credentials.

Detection Guidance

This vulnerability can be detected by monitoring HTTP requests to Apache Camel routes that expose an HTTP entry point in front of the elasticsearch-rest-client producer. Specifically, look for inbound HTTP requests containing the headers SEARCH_QUERY, OPERATION, INDEX_NAME, INDEX_SETTINGS, or ID without the 'Camel' prefix.

You can use network monitoring or packet capture tools like tcpdump or Wireshark to filter HTTP headers for these specific header names.

  • Using tcpdump to capture HTTP traffic and filter for suspicious headers: tcpdump -A -s 0 'tcp port 80 or tcp port 443' | grep -iE 'SEARCH_QUERY|OPERATION|INDEX_NAME|INDEX_SETTINGS|ID'
  • Using curl to test if the server accepts these headers: curl -v -H 'SEARCH_QUERY: {"match_all":{}}' http://your-camel-http-endpoint

Additionally, review application logs for unexpected operations or queries that could indicate exploitation attempts.

Mitigation Strategies

The primary mitigation is to upgrade Apache Camel to a fixed version: 4.14.8, 4.18.3, or 4.21.0 depending on your release stream.

If immediate upgrade is not possible, apply temporary mitigations by stripping the affected headers from untrusted inbound messages before they reach the elasticsearch-rest-client producer.

  • Remove headers: removeHeader('SEARCH_QUERY'), removeHeader('OPERATION'), removeHeader('INDEX_NAME'), removeHeader('INDEX_SETTINGS'), and removeHeader('ID') in the Camel route before the elasticsearch-rest-client endpoint.
  • Alternatively, implement a custom HeaderFilterStrategy that blocks these header names.

Chat Assistant

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

EPSS Chart