Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.7%top 48%

CVE-2026-53913: CWE-287 Improper Authentication in Apache Software Foundation Apache Camel Keycloak

0
Critical
VulnerabilityCVE-2026-53913cvecve-2026-53913cwe-287cwe-306cwe-636
Published: 07/06/2026 (07/06/2026, 08:12:32 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache Camel Keycloak

Description

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.

CVSS v3.1

Score 9.8critical

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

Affected software

Apache Software Foundation/org.apache.camel:camel-keycloak
pkg:maven/Apache Software Foundation/org.apache.camel:camel-keycloak
Affected versions
>=4.15.0 <4.18.3>=4.19.0 <4.21.0

Run 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

AILast updated: 07/14/2026, 09:09:33 UTC

Technical Analysis

The vulnerability arises because the KeycloakSecurityPolicy in Apache Camel Keycloak performs token presence checks but skips cryptographic verification of the bearer token when both requiredRoles and requiredPermissions are empty, which is the default 'Basic Setup'. As a result, any non-null bearer token string, including forged or unsigned tokens, is accepted, allowing unauthenticated access to routes protected by this policy. This can lead to unauthorized server-side actions and potentially remote code execution if the route forwards to code-execution-capable producers. The flaw is independent of a prior related CVE (2026-23552) and persists in affected versions until fixed in 4.18.3 and 4.21.0.

Potential Impact

The vulnerability allows attackers to bypass authentication by presenting any non-null bearer token, including arbitrary or forged tokens, to access protected routes without proper verification. This can result in unauthorized access to sensitive server-side functionality and may lead to unauthenticated remote code execution if the route forwards requests to code-execution-capable components. The CVSS score of 9.8 reflects critical impact with high confidentiality, integrity, and availability consequences.

Mitigation Recommendations

A fix is available in Apache Camel Keycloak versions 4.18.3 and 4.21.0; users are strongly recommended to upgrade to these versions. For users unable to upgrade immediately, mitigation includes configuring KeycloakSecurityPolicy with non-empty requiredRoles or requiredPermissions to enforce token verification, setting allowTokenFromHeader to false if tokens are not expected from request headers, or performing token verification at the framework layer before the policy is applied.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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/14/2026, 09:09:33 UTC

Last updated: 08/19/2026, 22:52:13 UTC

Views: 192

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses