CVE-2026-53913: Apache Camel Keycloak: KeycloakSecurityPolicy verifies the bearer access token only inside its role and permission checks, so in the default configuration the token is never verified and any non-null bearer value is accepted

Published Jul 5, 2026
·
Updated

Improper Authentication, Missing Authentication for Critical Function, Not Failing Securely ('Failing Open') vulnerability in Apache Camel Keycloak Component.

The KeycloakSecurityPolicy of camel-keycloak guards a route by running KeycloakSecurityProcessor.beforeProcess(), which performs three checks in sequence: it rejects a request that carries no access token, then - only if requiredRoles is non-empty - validates the roles, and - only if requiredPermissions is non-empty - validates the permissions. The actual cryptographic verification of the bearer access token (signature, issuer and expiry for a local JWT, or active-state and issuer for token introspection) is performed exclusively inside those role and permission checks. KeycloakSecurityPolicy defaults requiredRoles and requiredPermissions to empty - which is the documented 'Basic Setup' - so on a route configured that way the role and permission checks are skipped and the access token is therefore never verified. The token-presence check still rejects a missing token, but an invalid token is accepted: any non-null value in the Authorization: Bearer header - including an arbitrary string or a forged, unsigned JWT - passes the policy and the request reaches the protected route, with no signature, issuer or expiry check and no request to Keycloak. The token is read from the inbound request header because allowTokenFromHeader defaults to true. Because the normal reason to place a route behind this policy is that the route performs server-side work, the bypass results in unauthenticated access to that work; where the protected route forwards to a code-execution-capable producer, it can result in unauthenticated remote code execution. This defect is independent of CVE-2026-23552: that issue concerned the issuer claim and was fixed by adding a check inside the verification routine, but here the verification routine is not reached at all in the default configuration, so the defect remains. This issue affects Apache Camel: from 4.15.0 before 4.18.3, from 4.19.0 before 4.21.0.

Users are recommended to upgrade to version 4.21.0, which fixes the issue. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.3. For deployments that cannot upgrade immediately, configure a non-empty requiredRoles or requiredPermissions on every KeycloakSecurityPolicy so that the token-verification path is exercised, set allowTokenFromHeader to false where the token is not expected from the request header, or perform token verification at the framework layer ahead of the policy.

Affected Software

3 affected components
Apache Camel>=4.15.0<4.18.3, >=4.19.0<4.21.0
Apache Camel>=4.15.0<4.18.3
Apache Camel>=4.19.0<4.21.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Apache Camel (camel-keycloak) to a version that resolves this vulnerability.

    Fixed in 4.18.3
  2. Upgrade

    Upgrade Apache Camel (camel-keycloak) to a version that resolves this vulnerability.

    Fixed in 4.21.0
  3. Configuration

    For each KeycloakSecurityPolicy where you cannot upgrade yet, configure a non-empty requiredRoles so the token-verification path is exercised (role/permission checks will invoke KeycloakSecurityProcessor.beforeProcess()).

    Camel Keycloak (KeycloakSecurityPolicy) requiredRoles = non-empty
  4. Configuration

    For each KeycloakSecurityPolicy where you cannot upgrade yet, configure a non-empty requiredPermissions so the token-verification path is exercised (permission checks will invoke KeycloakSecurityProcessor.beforeProcess()).

    Camel Keycloak (KeycloakSecurityPolicy) requiredPermissions = non-empty
  5. Configuration

    Set allowTokenFromHeader to false on KeycloakSecurityPolicy in deployments where the token is not expected from the request header, so the policy does not accept any non-null Bearer header value without verification.

    Camel Keycloak (KeycloakSecurityPolicy) allowTokenFromHeader = false
  6. Compensating control

    For deployments that cannot upgrade immediately, perform bearer token verification at the framework layer ahead of KeycloakSecurityPolicy (so that cryptographic verification is done before the route enters KeycloakSecurityPolicy).

Event History

Jul 6, 2026
CVE Published
via MITRE·08:12 AM
Data Sourced
via MITRE·08:12 AM
DescriptionWeakness
Data Sourced
via NVD·09:16 AM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-53913?

CVE-2026-53913 has a critical severity rating of 9.8.

2

What vulnerability does CVE-2026-53913 describe?

CVE-2026-53913 describes an Improper Authentication vulnerability in Apache Camel Keycloak.

3

How can I mitigate the risks associated with CVE-2026-53913?

To mitigate CVE-2026-53913, you should configure the KeycloakSecurityPolicy to properly verify bearer access tokens.

4

What are the potential impacts of CVE-2026-53913?

The potential impacts of CVE-2026-53913 include unauthorized access to critical functions due to improper token verification.

5

Which software is affected by CVE-2026-53913?

CVE-2026-53913 affects the Apache Camel Keycloak component.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203