CVE-2026-40022: Authentication Bypass in Apache Camel camel-platform-http-main on Non-Root Context Paths
- Vendor
- Apache Software Foundation
CVE-2026-40022 is an authentication bypass vulnerability in Apache Camel's camel-platform-http-main component affecting the embedded HTTP server and embedded management server. The flaw occurs when authentication is enabled and the application is configured to use a non-root context path, such as /api or /admin, through camel.server.path or camel.management.path, while camel.server.authenticationPath or camel.management.authenticationPath is not explicitly set. In this condition, the BasicAuthenticationConfigurer and JWTAuthenticationConfigurer classes derive the authentication path from properties.getPath(). Due to the Vert.x sub-router mounting model, the sub-router is mounted at the configured context path and the authentication handler is then registered inside that sub-router at the resolved path. As a result, the authentication handler matches only the exact configured context path rather than subpaths beneath it. This allows unauthenticated requests to reach protected business routes and management endpoints located under those subpaths. The issue affects Apache Camel versions 4.14.1 through before 4.14.6 and 4.18.0 through before 4.18.2.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an unauthenticated attacker to bypass authentication controls for protected routes and management endpoints located beneath a non-root context path. This can expose application functionality that was expected to require credentials and can also disclose runtime metadata from management interfaces, including environment and process details such as the running user, working directory, home directory, process identifier, JVM information, and operating system information. Depending on what business or management routes are exposed in the affected deployment, the practical impact may include unauthorized access to administrative capabilities and sensitive operational data.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, explicitly configure camel.server.authenticationPath or camel.management.authenticationPath so authentication is enforced on the intended paths rather than relying on the derived default behavior. Additionally, restrict network exposure to embedded HTTP and management endpoints, especially management interfaces, until a fixed release can be deployed.
Remediation
Patch, then assume compromise.
Upgrade Apache Camel to a fixed version. Apache recommends upgrading to 4.20.0. For deployments on the 4.14.x LTS branch, upgrade to 4.14.6. For deployments on the 4.18.x LTS branch, upgrade to 4.18.2.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-40022 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-40022 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-40022?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-40022, the earliest disclosed Jul 6, 2026.
- Is there a patch for CVE-2026-40022?
- Upgrade Apache Camel to a fixed version. Apache recommends upgrading to 4.20.0.
- What products are affected by CVE-2026-40022?
- Apache Software Foundation Camel.
- How severe is CVE-2026-40022?
- CVE-2026-40022 has a CVSS v3.1 score of 8.2 (High) and an EPSS score of 1.1% (64th percentile) as of Sep 25, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.