Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2026-40022: Authentication Bypass in Apache Camel camel-platform-http-main on Non-Root Context Paths

Published Apr 27, 2026 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.2High · v3.1
EPSS1.1%64th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Apache Software Foundation
IdentifiersCVE-2026-40022CWE-288 · Authentication Bypass Using an…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

1 exploit validated by Mallory's analysis.

View more in app →
CVE-2026-40022This repository is a small Java/Maven proof-of-concept reproducer for CVE-2026-40022, an authentication bypass in Apache Camel's camel-platform-http-main component. The project is not an exploit framework module; it is a standalone demo application showing that when Camel's embedded HTTP server is configured with authentication enabled and a non-root context path, but authenticationPath is left unset, the auth handler is attached only to the exact context path rather than all subpaths. As a result, requests to real application subpaths can bypass authentication. Repository structure is minimal and purpose-built: pom.xml pins Camel to vulnerable version 4.18.1 and builds a shaded runnable JAR; Application.java is the main entry point that starts Camel Main and registers the route; HelloRoute.java defines a single GET platform-http route at /hello; application.properties enables the embedded server on port 8080, sets the vulnerable non-root context path /api, enables authentication, and points to auth.properties; auth.properties defines a Basic Auth user camel with password propertiesPass. README.md contains the vulnerability explanation, affected/fixed versions, reproduction steps, and mitigation guidance. Main exploit capability: unauthenticated access to protected HTTP routes under the configured context path. In this PoC, the intended protected route is /api/hello, but it can be fetched without credentials. The README also notes the same issue can affect management endpoints such as /admin/observe/info, potentially disclosing runtime metadata. The exploit is operationally simple: start the vulnerable app and send crafted HTTP GET requests to subpaths under the non-root context path. No shellcode, RCE, or post-exploitation payload is present; this is a focused authentication-bypass PoC.oscerd · Disclosed Jul 6, 2026 · java · xml · web · networkPoC
Exposure surface

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.

VendorProductType
Apache Software FoundationCamelapplication
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity5Community discussion across Reddit, Mastodon, and other social sources.