CVE-2026-40022

8.2

Apache Software Foundation · Apache Camel Platform HTTP Main

An authentication bypass vulnerability in Apache Camel allows unauthenticated access to protected routes and management endpoints when non-root context paths are configured.

Executive summary

A critical authentication bypass flaw in the Apache Camel platform permits unauthenticated users to access sensitive management endpoints and business routes, posing a high risk of unauthorized information disclosure.

Vulnerability

This is an authentication bypass (CWE-288) where the authentication handler only matches the exact configured context path rather than its subpaths. Consequently, unauthenticated requests to subpaths of protected routes are processed without credential challenges, exposing sensitive metadata.

Business impact

The vulnerability allows attackers to bypass security controls and access sensitive management endpoints, such as the /observe/info route. This can result in the exposure of critical runtime metadata including internal process IDs, system paths, and environment details. Given the CVSS score of 8.2, this represents a significant security breach potential that could facilitate further reconnaissance and exploitation of the backend infrastructure.

Remediation

Immediate Action: Update the Apache Camel component to version 4.14.6, 4.18.2, or 4.20.0 as provided in the Maven repository.

Proactive Monitoring: Review web server and application access logs for unusual patterns of unauthenticated requests targeting /api or /admin subpaths.

Compensating Controls: Deploy a Web Application Firewall (WAF) to block unauthorized attempts to access management endpoints if immediate patching is not feasible.

Exploitation status

Public Exploit Available: Yes, a public proof-of-concept repository exists on GitHub.

Analyst recommendation

This vulnerability presents a severe risk to the confidentiality of system metadata and internal application logic. Administrators must prioritize the update to the patched versions of Apache Camel, as this is the only definitive way to resolve the path-matching logic error. Failure to patch may leave your environment vulnerable to unauthorized reconnaissance and potential follow-on attacks.

More Apache Software Foundation CVEs

Sources

Originally found and disclosed by Jihang Yu, per the CVE Program record.