CVE-2026-40022
JSON

8.2high

Apache Camel Platform HTTP Main: Authentication Bypass on Non-Root Context Paths in camel main runtime

Severity
8.2high CVSS:3.1 by CISA-ADP
Exploit likelihood
1.07% (higher than 64% of CVEs)
Published
Last changed
Assigned by
apache
Also known as
GHSA-27vm-5vpj-rp5g

Description

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.

Affected

Product or packageVersionsReported by
org.apache.camel:camel-platform-http-mainfrom 4.14.1 before 4.14.6, from 4.18.0 before 4.18.2CVE List
camel-httpNot specifiedCVE List
camelNot specified
Not affected: from http-base before *, from http-common before *, from http-starter before *
CVE List
openshift-serverless-1/kn-eventing-integrations-aws-ddb-streams-source-rhel9Not specifiedCVE List
openshift-serverless-1/kn-eventing-integrations-aws-s3-sink-rhel9Not specifiedCVE List
openshift-serverless-1/kn-eventing-integrations-aws-s3-source-rhel9Not specifiedCVE List
openshift-serverless-1/kn-eventing-integrations-aws-sns-sink-rhel9Not specifiedCVE List
openshift-serverless-1/kn-eventing-integrations-aws-sqs-sink-rhel9Not specifiedCVE List
openshift-serverless-1/kn-eventing-integrations-aws-sqs-source-rhel9Not specifiedCVE List
openshift-serverless-1/kn-eventing-integrations-log-sink-rhel9Not specifiedCVE List
openshift-serverless-1/kn-eventing-integrations-timer-source-rhel9Not specifiedCVE List
camel-http-baseNot specifiedCVE List

All scores

CISA-ADP8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
redhat-SADP8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
GitHub8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

Classification

CWE-288CWE-551

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Cuando la autenticación está habilitada en el servidor HTTP embebido de Apache Camel o en el servidor de gestión embebido (camel-platform-http-main) y se configura una ruta de contexto no raíz como /api o /admin a través de camel.server.path o camel.management.path, las clases BasicAuthenticationConfigurer y JWTAuthenticationConfigurer derivan la ruta de autenticación de properties.getPath() cuando camel.server.authenticationPath / camel.management.authenticationPath no está configurado explícitamente. Combinado con el modelo de montaje de sub-router de Vert.x - el sub-router se monta en _path_* y el gestor de autenticación se registra dentro del sub-router en la ruta resuelta - esto hace que el gestor de autenticación coincida solo con la ruta de contexto configurada exactamente, no con sus subrutas. Las solicitudes no autenticadas a subrutas como /api/_route_ o /admin/observe/info, por lo tanto, alcanzan rutas de negocio protegidas y puntos finales de gestión sin que se les soliciten credenciales. El punto final /observe/info puede divulgar metadatos en tiempo de ejecución como el usuario, el directorio de trabajo, el directorio de inicio, el ID del proceso, la JVM y la información del sistema operativo. Este problema afecta a Apache Camel: desde 4.14.1 antes de 4.14.6, desde 4.18.0 antes de 4.18.2. Se recomienda a los usuarios actualizar a la versión 4.20.0, que soluciona el problema. Si los usuarios están en la rama de versiones LTS 4.14.x, se les sugiere actualizar a 4.14.6. Si los usuarios están en la rama de versiones LTS 4.18.x, se les sugiere actualizar a 4.18.2.

References

https://camel.apache.org/security/CVE-2026-40022.htmlvendor-advisory, web
http://www.openwall.com/lists/oss-security/2026/04/26/5mailing-list, third-party-advisory, web
https://access.redhat.com/security/cve/CVE-2026-40022vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2463178issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40022.json
https://access.redhat.com/errata/RHSA-2026:17668vendor-advisory
https://nvd.nist.gov/vuln/detail/CVE-2026-40022advisory
https://github.com/apache/camel/pull/22474web
https://github.com/apache/camel/pull/22475web
https://github.com/apache/camel/pull/22476web
https://github.com/apache/camel/commit/6ec12cbebfc1b6360cdaac1c1f8c681864911695web
https://github.com/apache/camel/commit/7b5b8c0283c0ab8d703d868ded7614018762a553web

Sources

SourceRecordLicence
CVE ListCVE-2026-40022 changed 2026-07-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-27vm-5vpj-rp5g changed 2026-09-10CC-BY-4.0
NVDCVE-2026-40022 changed 2026-10-26Public domain