CVE-2026-40022

Source
https://cve.org/CVERecord?id=CVE-2026-40022
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40022.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-40022
Aliases
Related
Published
2026-04-27T09:40:28.107Z
Modified
2026-07-08T08:13:09.675344755Z
Severity
  • 8.2 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N CVSS Calculator
Summary
Apache Camel Platform HTTP Main: Authentication Bypass on Non-Root Context Paths in camel main runtime
Details

When authentication is enabled on the Apache Camel embedded HTTP server or embedded management server (camel-platform-http-main) and a non-root context path such as /api or /admin is configured via camel.server.path or camel.management.path, the BasicAuthenticationConfigurer and JWTAuthenticationConfigurer classes derive the authentication path from properties.getPath() when camel.server.authenticationPath / camel.management.authenticationPath is not explicitly set. Combined with the Vert.x sub-router mounting model - the sub-router is mounted at path* and the authentication handler is registered inside the sub-router at the resolved path - this causes the authentication handler to match only the exact configured context path, not its subpaths. Unauthenticated requests to subpaths such as /api/route or /admin/observe/info therefore reach protected business routes and management endpoints without being challenged for credentials. The /observe/info endpoint can disclose runtime metadata such as the user, working directory, home directory, process ID, JVM and operating system information.

This issue affects Apache Camel: from 4.14.1 before 4.14.6, from 4.18.0 before 4.18.2.

Users are recommended to upgrade to version 4.20.0, which fixes the issue. If users are on the 4.14.x LTS releases stream, they are suggested to upgrade to 4.14.6. If users are on the 4.18.x LTS releases stream, they are suggested to upgrade to 4.18.2.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40022.json",
    "cwe_ids": [
        "CWE-288"
    ],
    "cna_assigner": "apache",
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "introduced": "4.14.1"
                },
                {
                    "fixed": "4.14.6"
                },
                {
                    "introduced": "4.18.0"
                },
                {
                    "fixed": "4.18.2"
                }
            ]
        },
        {
            "extracted_events": [
                {
                    "introduced": "4.14.1"
                },
                {
                    "fixed": "4.14.6"
                },
                {
                    "introduced": "4.18.0"
                },
                {
                    "fixed": "4.18.2"
                }
            ],
            "source": "DESCRIPTION"
        }
    ]
}
References

Affected packages

Git / github.com/apache/camel

Affected ranges

Type
GIT
Repo
https://github.com/apache/camel
Events
Database specific
{
    "cpe": "cpe:2.3:a:apache:camel:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "4.14.1"
        },
        {
            "fixed": "4.14.6"
        },
        {
            "introduced": "4.15.0"
        },
        {
            "fixed": "4.18.2"
        }
    ],
    "source": "CPE_RANGE"
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40022.json"