CVE-2026-53913: CWE-287 Improper Authentication in Apache Software Foundation Apache Camel Keycloak
CVE-2026-53913 is an improper authentication vulnerability in the Apache Camel Keycloak component. The default configuration of KeycloakSecurityPolicy skips cryptographic verification of bearer access tokens when requiredRoles and requiredPermissions are empty, allowing any non-null bearer token value to bypass authentication. This can lead to unauthenticated access to protected routes and potentially unauthenticated remote code execution if the route forwards to a code-execution-capable producer. The issue affects Apache Camel Keycloak versions 4.15.0 through before 4.18.3 and 4.19.0 through before 4.21.0. Upgrading to 4.21.0 or 4.18.3 (for the 4.18.x stream) fixes the issue.
AI Analysis
Technical Summary
The Apache Camel Keycloak component's KeycloakSecurityPolicy performs token presence checks but skips full token verification (signature, issuer, expiry) when both requiredRoles and requiredPermissions are empty, which is the default 'Basic Setup'. This means any non-null bearer token, including forged or unsigned tokens, is accepted, allowing unauthenticated access to protected routes. This vulnerability affects versions 4.15.0 before 4.18.3 and 4.19.0 before 4.21.0. The flaw is independent of a previous CVE (2026-23552) and remains in default configurations. The vendor recommends upgrading to 4.21.0 or 4.18.3 and/or configuring non-empty requiredRoles or requiredPermissions or disabling token acceptance from headers to enforce token verification.
Potential Impact
Unauthenticated users can bypass authentication checks on routes protected by the KeycloakSecurityPolicy in default configurations, potentially gaining unauthorized access to server-side functionality. If the protected route forwards requests to components capable of executing code, this can lead to unauthenticated remote code execution. This undermines the security guarantees of the authentication mechanism and exposes sensitive operations to attackers.
Mitigation Recommendations
A fix is available in Apache Camel Keycloak versions 4.21.0 and 4.18.3. Users should upgrade to these versions to resolve the vulnerability. For deployments unable to upgrade immediately, configure KeycloakSecurityPolicy with non-empty requiredRoles or requiredPermissions to ensure token verification is performed. Alternatively, set allowTokenFromHeader to false if tokens are not expected in request headers, or perform token verification at the framework layer before the policy is applied.
CVE-2026-53913: CWE-287 Improper Authentication in Apache Software Foundation Apache Camel Keycloak
Description
CVE-2026-53913 is an improper authentication vulnerability in the Apache Camel Keycloak component. The default configuration of KeycloakSecurityPolicy skips cryptographic verification of bearer access tokens when requiredRoles and requiredPermissions are empty, allowing any non-null bearer token value to bypass authentication. This can lead to unauthenticated access to protected routes and potentially unauthenticated remote code execution if the route forwards to a code-execution-capable producer. The issue affects Apache Camel Keycloak versions 4.15.0 through before 4.18.3 and 4.19.0 through before 4.21.0. Upgrading to 4.21.0 or 4.18.3 (for the 4.18.x stream) fixes the issue.
Affected software
pkg:maven/Apache Software Foundation/org.apache.camel:camel-keycloakRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Apache Camel Keycloak component's KeycloakSecurityPolicy performs token presence checks but skips full token verification (signature, issuer, expiry) when both requiredRoles and requiredPermissions are empty, which is the default 'Basic Setup'. This means any non-null bearer token, including forged or unsigned tokens, is accepted, allowing unauthenticated access to protected routes. This vulnerability affects versions 4.15.0 before 4.18.3 and 4.19.0 before 4.21.0. The flaw is independent of a previous CVE (2026-23552) and remains in default configurations. The vendor recommends upgrading to 4.21.0 or 4.18.3 and/or configuring non-empty requiredRoles or requiredPermissions or disabling token acceptance from headers to enforce token verification.
Potential Impact
Unauthenticated users can bypass authentication checks on routes protected by the KeycloakSecurityPolicy in default configurations, potentially gaining unauthorized access to server-side functionality. If the protected route forwards requests to components capable of executing code, this can lead to unauthenticated remote code execution. This undermines the security guarantees of the authentication mechanism and exposes sensitive operations to attackers.
Mitigation Recommendations
A fix is available in Apache Camel Keycloak versions 4.21.0 and 4.18.3. Users should upgrade to these versions to resolve the vulnerability. For deployments unable to upgrade immediately, configure KeycloakSecurityPolicy with non-empty requiredRoles or requiredPermissions to ensure token verification is performed. Alternatively, set allowTokenFromHeader to false if tokens are not expected in request headers, or perform token verification at the framework layer before the policy is applied.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-06-11T10:24:16.144Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4b6cb027e9c79719252695
Added to database: 07/06/2026, 08:52:00 UTC
Last enriched: 07/06/2026, 09:07:04 UTC
Last updated: 07/06/2026, 18:07:14 UTC
Views: 34
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.