CVE-2026-40022: Camel platform http main Authentication Bypass Vulnerability

HIGH
Advisory Identifier: GHSA-27vm-5vpj-rp5g
CVSS 8.2
CWE-288
Published
Advisory Summary

CVE-2026-40022 is a HIGH (CVSS 8.2) authentication bypass vulnerability (CWE-288: Authentication Bypass Using an Alternate Path or Channel) affecting Camel platform http main libraries in the Maven ecosystem. The issue involves apache camel vulnerable to authentication bypass using an alternate path or channel. Remediation is available by upgrading affected packages to version 4.14.6, 4.18.2, 4.20.0.

CVE-2026-40022 at a Glance

CVE Identifier CVE-2026-40022
GHSA Identifier GHSA-27vm-5vpj-rp5g
Severity HIGH
CVSS v3.1 Base Score 8.2
CWE Classification CWE-288: Authentication Bypass Using an Alternate Path or Channel
Affected Product Camel platform http main
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-40022

To remediate this vulnerability, upgrade all affected Camel platform http main dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.camel:camel-platform-http-main fixed: 4.14.6
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-platform-http-main</artifactId>
    <version>4.14.6</version>
</dependency>
org.apache.camel:camel-platform-http-main fixed: 4.18.2
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-platform-http-main</artifactId>
    <version>4.18.2</version>
</dependency>
org.apache.camel:camel-platform-http-main fixed: 4.20.0
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-platform-http-main</artifactId>
    <version>4.20.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.camel

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-40022, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.camel

Analyze the terminal output to locate any version of Camel platform http main in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.14.6), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.camel command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-288: Authentication Bypass Using an Alternate Path or Channel, where the product requires authentication, but the product has an alternate path or channel that does not require authentication. In Camel platform http main, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-40022 Affected Camel platform http main Versions

3 component(s)
Fixed Versions:
4.14.64.18.24.20.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.camel:camel-platform-http-main
Maven
≥ 4.14.1
< 4.14.6
4.14.6
org.apache.camel:camel-platform-http-main
Maven
≥ 4.18.0
< 4.18.2
4.18.2
org.apache.camel:camel-platform-http-main
Maven
≥ 4.19.0
< 4.20.0
4.20.0

References

Frequently Asked Questions

What is CVE-2026-40022?
CVE-2026-40022 is a security vulnerability in Camel platform http main involving Apache Camel Vulnerable to Authentication Bypass Using an Alternate Path or Channel under CWE-288: Authentication Bypass Using an Alternate Path or Channel.
Which Camel platform http main versions are affected?
Affected versions include releases prior to 4.14.6, 4.18.2, 4.20.0 across affected packages: org.apache.camel:camel-platform-http-main.
What version fixes CVE-2026-40022?
Upgrading to 4.14.6, 4.18.2, 4.20.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is camel-platform-http-main affected?
Yes, org.apache.camel:camel-platform-http-main is affected in releases prior to 4.14.6, 4.18.2, 4.20.0. Upgrade your dependency to 4.14.6, 4.18.2, 4.20.0 or later.
What is the CVSS score of CVE-2026-40022?
CVE-2026-40022 has a CVSS v3.1 base score of 8.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N.
What CWE is associated with CVE-2026-40022?
CVE-2026-40022 is classified under CWE-288: Authentication Bypass Using an Alternate Path or Channel (The product requires authentication, but the product has an alternate path or channel that does not require authentication.).
How can I check Maven dependencies for CVE-2026-40022?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.camel'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-27vm-5vpj-rp5g",
  "modified" : "2026-05-05T21:38:59Z",
  "published" : "2026-04-27T12:30:38Z",
  "aliases" : [ "CVE-2026-40022" ],
  "summary" : "Apache Camel Vulnerable to Authentication Bypass Using an Alternate Path or Channel",
  "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.\n\nThis issue affects Apache Camel: from 4.14.1 before 4.14.6, from 4.18.0 before 4.18.2.\n\nUsers 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-platform-http-main"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.14.1"
      }, {
        "fixed" : "4.14.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-platform-http-main"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.18.0"
      }, {
        "fixed" : "4.18.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-platform-http-main"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.19.0"
      }, {
        "fixed" : "4.20.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-40022"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/pull/22474"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/pull/22475"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/pull/22476"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/6ec12cbebfc1b6360cdaac1c1f8c681864911695"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/7b5b8c0283c0ab8d703d868ded7614018762a553"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/a9ebee94af976ac2afd7906d2e76673067d8be86"
  }, {
    "type" : "WEB",
    "url" : "https://camel.apache.org/security/CVE-2026-40022.html"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/camel"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2026/04/26/5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-288" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-05T21:38:59Z",
    "nvd_published_at" : "2026-04-27T10:16:09Z"
  }
}