Summary
CVE-2026-78164 is a property placeholder injection vulnerability (information disclosure) in Apache Camel’s HTTP producer components. Attacker-controlled message headers can cause Camel to resolve placeholders and expose secrets such as environment variables, JVM system properties and vault-stored values. The CVSS v3.1 base score is 8.2 (High).
Technical details
- Root cause: the HTTP producers apply
CamelContext.resolvePropertyPlaceholders()to the message-supplied URI override headersCamelHttpUriandCamelRestHttpUri. Seven code paths across the affected components were identified. - Affected components:
camel-http,camel-http-common,camel-vertx-http,camel-undertowandcamel-netty-http. - Trigger conditions: an attacker supplies one of these headers containing placeholder tokens, for example
{{sys:secret-key}}. The producer resolves the tokens before it sends the outbound request. - Attack vector: network. No authentication or user interaction is required. The attacker must be able to get such a header into a message that reaches an affected HTTP producer.
- Impact: disclosure of environment variables, JVM system properties and secrets from registered secret functions (AWS, Azure, GCP, HashiCorp, IBM, CyberArk, Kubernetes). The advisory and PoC repository also report arbitrary bean method invocation on the Camel registry and configuration leakage through error messages.
- Weaknesses: CWE-1336 and CWE-200.
Affected software
camel-http: 4.0.0 to 4.18.4 and 4.19.0 to 4.22.0.camel-http-common,camel-vertx-http,camel-undertow,camel-netty-http: 4.15.0 to 4.18.4 and 4.19.0 to 4.22.0.- Camel 4.14.x and earlier are end-of-life.
Severity
CVSS v3.1 base score 8.2 (High): CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Mitigation and recommended actions
- Immediate: upgrade to Camel 4.23.0 (recommended), 4.22.1 on the 4.22.x branch, or 4.18.5 on the 4.18.x branch. Users of end-of-life releases should migrate to a supported release.
- Workarounds if you can’t patch now:
- Remove the headers with
removeHeader("CamelHttpUri")andremoveHeader("CamelRestHttpUri"). - Set
skipControlHeaders=true(camel-http only). - Apply a strict
HeaderFilterStrategyfor untrusted senders. - Keep secrets in vaults rather than environment variables.
- Remove the headers with
- The advisory states that
bridgeEndpoint=trueand percent-encoding delimiters are not effective mitigations.

