Apache Camel Netty HTTP Auth Bypass (CVE-2026-115689)
One endpoint's Netty HTTP security options can switch off authentication for other Camel routes; fixed in 4.24.0, 4.22.3 and 4.18.6.
TL;DR
- Apache Camel's Netty HTTP component gave every endpoint the same
NettyHttpSecurityConfigurationobject. When one endpoint setsecurityConfiguration.*options, it changed that shared object for every route on the component. - Camel 4.0.0 to 4.18.5, 4.19.0 to 4.22.2, and 4.23.0 to before 4.24.0 are affected when a component-level security configuration is combined with per-endpoint security options.
- Apache rates CVE-2026-115689 CVSS v3.1 9.1 Critical (CWE-287). The advisory was published on 2026-12-02. No in-the-wild exploitation or public exploit code is reported, and the CVE is not in CISA KEV as of 2026-12-03.
- Upgrade to Camel 4.24.0, or to 4.22.3 or 4.18.6 on those long-term-support lines. "How do I fix it?" gives the dependency commands and a workaround for anyone who cannot upgrade yet.
Am I affected?
All of these must hold:
- The application uses
camel-netty-httpfrom an affected Camel release. - A
NettyHttpSecurityConfigurationis set on the component, so protected routes inherit it. - At least one endpoint on that component sets
securityConfiguration.*URI options, such assecurityConfiguration.authenticate=falsefor a public route. - The same component also serves routes that are meant to require credentials.
An application that never sets per-endpoint securityConfiguration.* options does not hit the mutation path. An application that uses a separate component, or a separate security configuration instance, for each policy is also outside the described mix.
The vulnerability is a configuration-isolation flaw, not a parsing bug. The version alone does not tell you whether your routes are exposed. Review the route definitions as well.
| Branch | Affected versions | Fixed version |
|---|---|---|
| Camel 4.18.x long-term support | 4.0.0 to 4.18.5 | 4.18.6 |
| Camel 4.22.x long-term support | 4.19.0 to 4.22.2 | 4.22.3 |
| Camel 4.23.x | 4.23.0 to before 4.24.0 | 4.24.0 |
Apache published the advisory on 2026-12-02. The JIRA issue CAMEL-26068 was created on 2026-10-23 and resolved on 2026-11-12. The fixed tags were cut between 2026-11-21 and 2026-11-28.
Check which Camel Netty HTTP version your build resolves:
mvn dependency:tree -Dincludes=org.apache.camel:camel-netty-http
./gradlew dependencyInsight --dependency camel-netty-http --configuration runtimeClasspath
Then find the route definitions that mix the component configuration with endpoint options:
grep -R "securityConfiguration" src/main
grep -R "NettyHttpSecurityConfiguration" src/main
How do I fix it?
Upgrade camel-netty-http to 4.24.0. Applications on the 4.22.x or 4.18.x long-term-support lines can take 4.22.3 or 4.18.6 instead. The Apache advisory names all three fixed releases.
With Maven, import the matching Camel BOM so every Camel module moves together:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-bom</artifactId>
<version>4.24.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
With Gradle, use the same BOM as a platform:
implementation platform('org.apache.camel:camel-bom:4.24.0')
implementation 'org.apache.camel:camel-netty-http'
Replace 4.24.0 with 4.22.3 or 4.18.6 only if the rest of your Camel modules are on that line. Do not mix a fixed camel-netty-http with an older Camel core.
If you cannot upgrade immediately, isolate the configuration per policy:
- Give the public route its own
NettyHttpSecurityConfigurationbean and reference it from that endpoint's URI with thesecurityConfigurationparameter, for examplesecurityConfiguration=#publicSecurityConfig. - Keep the protected routes on the component-level configuration and do not set
securityConfiguration.*options on them. - Audit every endpoint that disables authentication, and confirm it does not share a configuration instance with a protected route.
This workaround depends on configuration discipline. A later endpoint added to the protected component with securityConfiguration.authenticate=false reopens the problem, so treat the upgrade as the real fix.
What is the root cause?
NettyHttpComponent.createEndpoint assigned the component-level security configuration object to each new endpoint by reference. It then applied endpoint-level security options to that same object with setProperties.
The vulnerable code in Camel 4.23.0 is:
if (securityConfiguration != null) {
answer.setSecurityConfiguration(securityConfiguration);
} else if (answer.getSecurityConfiguration() == null) {
answer.setSecurityConfiguration(getSecurityConfiguration());
}
// configure any security options
if (securityOptions != null && !securityOptions.isEmpty()) {
securityConfiguration = answer.getSecurityConfiguration();
if (securityConfiguration == null) {
securityConfiguration = new NettyHttpSecurityConfiguration();
answer.setSecurityConfiguration(securityConfiguration);
}
setProperties(securityConfiguration, securityOptions);
validateParameters(uri, securityOptions, null);
}
The first branch stores the component's instance on the endpoint. When the URI carries securityConfiguration.* parameters, PropertiesHelper.extractProperties has already collected them into securityOptions. The setProperties call then writes each value into the object the endpoint received.
NettyHttpSecurityConfiguration holds the authenticate flag, the constraint name, the realm, a SecurityConstraint, a SecurityAuthenticator and the denied-login logging level. The default for authenticate is true. Writing false into the shared object turns authentication off for every endpoint that holds the same reference.
The component has no per-endpoint copy in the vulnerable code. The Netty HTTP binding and the main Netty configuration are copied for each endpoint, but the security configuration is not.
How is it exploited?
This is not an input-parsing exploit. The attacker uses a weak configuration that the application creates for itself.
- The application defines a component-level
NettyHttpSecurityConfigurationand attaches protected routes to that component. - One route on the same component sets
securityConfiguration.authenticate=false, often a public health or callback endpoint. - Camel writes
falseinto the shared configuration object while creating that endpoint. - The protected routes now read the same object and accept requests without credentials.
- An attacker calls a protected route over the network and reaches its handler.
The attacker does not need an account, a token or a malformed request. The only prerequisite is that a reachable protected route shares the component with an endpoint that changed the shared security options.
No public proof of concept is linked in the advisory. The Apache JIRA issue and the three fix pull requests describe the mechanism and add a unit test, and the test is the clearest public reproduction of the changed behaviour.
How does the attack flow?
A public route changes the shared security object, and a protected route on the same component then accepts unauthenticated requests.
What can an attacker do?
An attacker can reach HTTP routes that were meant to require credentials and make the application run their handlers. The impact is whatever those routes do, such as reading data, changing state or triggering a downstream call.
The flaw does not grant code execution by itself. It removes the authentication check on the affected routes. The CVSS vector rates confidentiality and integrity as High and availability as None, which matches an unauthenticated caller reaching application logic.
The attacker needs network access to a protected route and a target application that mixes a component-level security configuration with per-endpoint security options. An application with a single policy, or one that never disables authentication on an endpoint, is not exposed in the described way.
Why does the fix work?
The fix gives every endpoint its own copy of the security configuration before any endpoint option is applied. A mutation then changes only that endpoint's copy.
The patch in Camel 4.24.0 is:
if (securityConfiguration != null) {
- answer.setSecurityConfiguration(securityConfiguration);
- } else if (answer.getSecurityConfiguration() == null) {
- answer.setSecurityConfiguration(getSecurityConfiguration());
+ answer.setSecurityConfiguration(securityConfiguration.copy());
+ } else if (answer.getSecurityConfiguration() == null && getSecurityConfiguration() != null) {
+ answer.setSecurityConfiguration(getSecurityConfiguration().copy());
}
NettyHttpSecurityConfiguration now implements Cloneable and exposes a copy() method:
public NettyHttpSecurityConfiguration copy() {
try {
return (NettyHttpSecurityConfiguration) clone();
} catch (CloneNotSupportedException e) {
throw new RuntimeCamelException(e);
}
}
The copy is shallow. The boolean, string and logging-level fields are copied by value. The SecurityConstraint and SecurityAuthenticator references are shared with the original, which the code comment says is intended.
The patch covers both assignment branches: an endpoint that receives an explicit security configuration and an endpoint that falls back to the component configuration. It also adds a null check before the fallback copy. The per-endpoint setProperties call still mutates the object, but that object is now private to the endpoint.
How do I check if I was compromised?
Apache has not published indicators of compromise for this CVE, and there is no exploitation report to match against. The useful check is a configuration and access-log review.
List the routes that disable authentication:
grep -R "securityConfiguration.authenticate" src/main
grep -R "NettyHttpSecurityConfiguration" src/main
Then look for successful requests to routes that should have returned an authentication challenge:
awk '{print $7, $9}' /var/log/nginx/access.log | sort | uniq -c | sort -nr | head -40
Adjust the log path and field positions for your reverse proxy or application server. A 200 on a protected path is a lead, not proof. Basic authentication headers are usually not in the access log, and a route may legitimately be public.
Because Camel is a library, the application owns the request logs. There is no Camel-side audit record for this flaw. Compare the observed responses with the authentication policy the route was meant to enforce.
Timeline
- 2026-10-23: The JIRA issue CAMEL-26068 is created and the fix pull request for the main branch is merged.
- 2026-11-12: The JIRA issue is resolved.
- 2026-11-21 to 2026-11-28: The 4.22.3, 4.18.6 and 4.24.0 tags are cut.
- 2026-12-02: Apache publishes the CVE-2026-115689 advisory.
- 2026-12-03: The CVE record is published.
FAQ
Is CVE-2026-115689 exploited in the wild?
No exploitation is reported, and the CVE is not in CISA KEV as of 2026-12-03. No public exploit code is linked in the advisory.
Does every Apache Camel application need to upgrade?
Every application on an affected release should upgrade, because the fix is cheap. Only applications that combine a component-level security configuration with per-endpoint securityConfiguration.* options are exposed to the bypass described here.
Which release should I choose?
Use 4.24.0 for the current line, 4.22.3 for the 4.22.x long-term-support line, or 4.18.6 for the 4.18.x line. Choose the release that matches the rest of your Camel modules.
Can I keep my current version and change a setting?
You can separate the public and protected routes onto different component instances and stop disabling authentication on a shared component. That workaround is fragile, because a new endpoint can reintroduce the mix. Upgrading is the durable fix.
Does this flaw give an attacker remote code execution?
Not by itself. It bypasses authentication on routes that share the affected component, so the impact depends on what those routes do. Treat any route that changes data or calls a sensitive backend as exposed if it was reachable through the shared object.
References
- Apache Camel security advisory for CVE-2026-115689, 2026-12-02: https://camel.apache.org/security/CVE-2026-115689.html (checked December 3, 2026)
- CVE-2026-115689 record: https://www.cve.org/CVERecord?id=CVE-2026-115689 (checked December 3, 2026)
- Apache JIRA CAMEL-26068: https://issues.apache.org/jira/browse/CAMEL-26068 (checked December 3, 2026)
- Fix pull request 28351, main branch: https://github.com/apache/camel/pull/28351 (checked December 3, 2026)
- Backport pull request 28366, 4.22.x branch: https://github.com/apache/camel/pull/28366 (checked December 3, 2026)
- Backport pull request 28369, 4.18.x branch: https://github.com/apache/camel/pull/28369 (checked December 3, 2026)
- Vulnerable source in Camel 4.23.0: https://github.com/apache/camel/blob/camel-4.23.0/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpComponent.java (checked December 3, 2026)
- Fixed source in Camel 4.24.0: https://github.com/apache/camel/blob/camel-4.24.0/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpComponent.java (checked December 3, 2026)
- Apache Camel 4.24.0 release notes, security fixes: https://camel.apache.org/releases/release-4.24.0/ (checked December 3, 2026)
- Apache Camel repository: https://github.com/apache/camel (checked December 3, 2026)
- CISA KEV catalog: https://www.cisa.gov/known-exploited-vulnerabilities-catalog (catalog checked December 3, 2026)
Keep reading
