# CVE-2026-78164: Apache Camel: HTTP producers resolve property placeholders in message-supplied URI override headers

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

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.47% (percentile 33, 2026-11-26)
- **CWE:** CWE-1336, CWE-200
- **Published:** 2026-10-19T10:07:40.078Z
- **Modified:** 2026-10-19T20:45:51.597Z

## Who should check

- Anyone running Apache Software Foundation Apache Camel \>= 4.0.0, \< 4.18.5; \>= 4.19.0, \< 4.22.1
- Anyone running Apache Software Foundation Apache Camel \>= 4.15.0, \< 4.18.5; \>= 4.19.0, \< 4.22.1

## 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 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. 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 should upgrade to version 4.23.0, which fixes the issue. Users on the 4.22.x releases stream should upgrade to 4.22.1. Users on the 4.18.x releases stream should 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.

## Affected and fixed versions

- Apache Software Foundation Apache Camel: \>= 4.0.0, \< 4.18.5; \>= 4.19.0, \< 4.22.1 (cvelist)
- Apache Software Foundation Apache Camel: \>= 4.15.0, \< 4.18.5; \>= 4.19.0, \< 4.22.1 (cvelist)
- Apache Software Foundation Apache Camel: \>= 4.15.0, \< 4.18.5; \>= 4.19.0, \< 4.22.1 (cvelist)
- Apache Software Foundation Apache Camel: \>= 4.15.0, \< 4.18.5; \>= 4.19.0, \< 4.22.1 (cvelist)
- Apache Software Foundation Apache Camel: \>= 4.15.0, \< 4.18.5; \>= 4.19.0, \< 4.22.1 (cvelist)

## Mitigation

- Upgrade Apache Camel to 4.22.1 or later.
- Vendor workaround: 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. 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 not a mitigation for camel-netty-http, whose binding decodes the request path before the value reaches the header.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-78164.md
Affected: Apache Software Foundation Apache Camel >= 4.0.0, < 4.18.5; >= 4.19.0, < 4.22.1; Apache Software Foundation Apache Camel >= 4.15.0, < 4.18.5; >= 4.19.0, < 4.22.1; Apache Software Foundation Apache Camel >= 4.15.0, < 4.18.5; >= 4.19.0, < 4.22.1; Apache Software Foundation Apache Camel >= 4.15.0, < 4…
Fixed in: Apache Software Foundation Apache Camel 4.18.5, Apache Software Foundation Apache Camel 4.22.1, Apache Software Foundation Apache Camel 4.18.5, Apache Software Foundation Apache Camel 4.22.1, Apache Software Foundation Apache Camel 4.18.5, Apache Software Foundation Apache Camel 4.22.1, Apache Soft…

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-78164 being exploited?

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

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

High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed.

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

Apache Software Foundation Apache Camel \>= 4.0.0, \< 4.18.5; \>= 4.19.0, \< 4.22.1; Apache Software Foundation Apache Camel \>= 4.15.0, \< 4.18.5; \>= 4.19.0, \< 4.22.1; Apache Software Foundation Apache Camel \>= 4.15.0, \< 4.18.5; \>= 4.19.0, \< 4.22.1; Apache Software Foundation Apache Camel \>= 4.15.0, \< 4.18.5; \>= 4.19.0, \< 4.22.1; Apache Software Foundation Apache Camel \>= 4.15.0, \< 4.18.5; \>= 4.19.0, \< 4.22.1.

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

Yes. Fixed in Apache Software Foundation Apache Camel 4.18.5, Apache Software Foundation Apache Camel 4.22.1, Apache Software Foundation Apache Camel 4.18.5, Apache Software Foundation Apache Camel 4.22.1, Apache Software Foundation Apache Camel 4.18.5, Apache Software Foundation Apache Camel 4.22.1, Apache Software Foundation Apache Camel 4.18.5, Apache Software Foundation Apache Camel 4.22.1, Apache Software Foundation Apache Camel 4.18.5, Apache Software Foundation Apache Camel 4.22.1. Upgrade Apache Camel to 4.22.1 or later. Vendor workaround: 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. 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 not a mitigation for camel-netty-http, whose binding decodes the request path before the value reaches the header.

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

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-78164.html>
- patch: <https://github.com/apache/camel/pull/25571>
- patch: <https://github.com/apache/camel/commit/ba5aced7f6a1c38a963020575676ad4c76b492cf>
- patch: <https://github.com/apache/camel/commit/9f8a185e315ce9e120889c4106be3dbf4688e507>
- patch: <https://github.com/apache/camel/commit/7cec534c66969015d85e56631143174dd150ed94>
- other: <https://issues.apache.org/jira/browse/CAMEL-24418>

## 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-78164>

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