CVE-2026-78164
Received Received - Intake

Template Injection and Information Exposure in Apache Camel HTTP Components

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

Publication date: 2026-10-19

Last updated on: 2026-10-19

Assigner: Apache Software Foundation

Description

Improper Neutralization of Special Elements Used in a Template Engine and Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Apache Camel HTTP, Netty HTTP, Undertow and Vert.x HTTP components. This issue affects Apache Camel: from 4.0.0 before 4.18.5, from 4.19.0 before 4.22.1. The Camel HTTP producer families let an inbound message override the endpoint URI through the CamelHttpUri and CamelRestHttpUri headers, and then passed that message-supplied string through CamelContext.resolvePropertyPlaceholders() before using it. Property-placeholder resolution is a configuration-resolution facility, not a URI-parsing step: it reaches operating-system environment variables, JVM system properties, every PropertiesFunction registered on the classpath - including the AWS, Azure, GCP, HashiCorp, IBM, CyberArk and Kubernetes secret functions - and, through camel-bean, the invocation of a no-argument method on any bean in the registry. Applying it to Exchange content therefore turned a URI string into a configuration- and bean-evaluation context. A route author opted into none of this: a plain static to("http://backend/api") was sufficient. Seven call sites were affected: HttpHelper.createURL and HttpHelper.createMethod in camel-http-common, HttpMethodHelper.createMethod in camel-http, VertxHttpHelper.resolveHttpURI in camel-vertx-http, UndertowHelper.createURL and UndertowHelper.createMethod in camel-undertow, and NettyHttpHelper.createURL in camel-netty-http. The bridgeEndpoint option did not bound the exposure: it suppresses the CamelHttpUri override in the createURL family but not in the createMethod family, so a route using the documented bridging configuration still resolved placeholders taken from the header, and CamelRestHttpUri was consumed before any bridgeEndpoint check in all four components. Only camel-http offered an opt-out, skipControlHeaders, which defaults to false. Reaching the headers did not always require header injection, because several Camel HTTP consumers populate CamelHttpUri from the request line themselves as a documented reverse-proxy feature. An unresolvable placeholder additionally produced a RuntimeExchangeException whose message echoed the URI, which distinguishes a set from an unset configuration key even where no outbound request is made. The behaviour predates the 4.x line; it dates back to the camel-http4 and camel-netty4 components. This advisory continues the alignment CAMEL-24282 applied to the toD and enrich dynamic-URI EIPs in 4.22.0, extending the same build-time-resolution contract to the HTTP producer components. 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.1. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.5. The 4.14.x releases stream and earlier reached end of life before this issue was resolved and will not receive a fix, so deployments on those lines must move to a supported release. For deployments that cannot upgrade immediately, strip the override headers at the trust boundary before the producer with removeHeader("CamelHttpUri") and removeHeader("CamelRestHttpUri"), or set skipControlHeaders=true on camel-http endpoints, which is the only component offering that option. Note that bridgeEndpoint=true is not a workaround: it suppresses the header override when the outbound URL is built but not when the header is re-parsed for the query string. Percent-encoding the placeholder delimiters is likewise not a mitigation for camel-netty-http, whose binding decodes the request path before the value reaches the header, so proxy or WAF rules written against the raw delimiters do not help there. As defence in depth, ensure consumers exposed to untrusted senders apply a strict inbound HeaderFilterStrategy over the Camel namespace, and resolve secrets through a vault rather than through environment variables or system properties that a placeholder can name.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

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

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
Apache Software Foundation Apache Camel 4.0.0
Apache Software Foundation Apache Camel 4.19.0
Apache Software Foundation Apache Camel 4.15.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-1336 The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.
CWE-200 The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in Apache Camel allows HTTP URI override headers like CamelHttpUri and CamelRestHttpUri to be processed through property-placeholder resolution at runtime. This means an attacker could inject special tokens in these headers that get expanded into sensitive configuration values, secrets, or even invoke registry bean methods. The issue affects multiple HTTP components and stems from treating message-supplied headers as configuration rather than literal values.

Detection Guidance

To detect this vulnerability, check if your Apache Camel HTTP components (camel-http, camel-netty-http, camel-undertow, camel-vertx-http) are running versions between 4.0.0 and 4.18.4, 4.19.0 and 4.22.0, or earlier. Inspect HTTP headers CamelHttpUri and CamelRestHttpUri for unexpected property placeholder patterns like {{...}}. Use logging to monitor RuntimeExchangeException messages that echo URIs with unresolved placeholders.

Impact Analysis

An attacker could exploit this to expose sensitive data such as cloud provider secrets (AWS, Azure, GCP), Kubernetes secrets, or other configuration values. They might also manipulate outbound requests by injecting malicious URIs or trigger unintended bean method executions. Systems using vulnerable Apache Camel versions could leak data or allow unauthorized actions through crafted HTTP headers.

Compliance Impact

This vulnerability could lead to unauthorized exposure of sensitive personal or health data, violating GDPR's data protection principles or HIPAA's security requirements. Organizations must address this to maintain compliance, as the flaw enables data leaks through improper header processing in HTTP components.

Mitigation Strategies

Upgrade Apache Camel to version 4.23.0, 4.22.1, or 4.18.5 depending on your release stream. If immediate upgrade is not possible, remove the problematic headers at the trust boundary using removeHeader("CamelHttpUri") and removeHeader("CamelRestHttpUri"), or set skipControlHeaders=true on camel-http endpoints. Avoid relying on bridgeEndpoint=true as a workaround. Apply strict inbound HeaderFilterStrategy for untrusted consumers and resolve secrets via a vault instead of environment variables or system properties.

Chat Assistant

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

EPSS Chart