CRITICAL🇬🇧 English

CVE-2026-53913

Apache Camel Keycloak: pominięcie weryfikacji tokenu — Auth Bypass / RCE

CVSS 9.8pub. 2026-07-06upd. 2026-07-09

Komponent camel-keycloak w Apache Camel posiada krytyczną podatność polegającą na całkowitym pominięciu kryptograficznej weryfikacji tokenu dostępu w domyślnej konfiguracji. Atakujący może ominąć mechanizm uwierzytelnienia, przesyłając dowolną wartość w nagłówku Authorization: Bearer, uzyskując nieautoryzowany dostęp do chronionych zasobów, a w przypadku tras z producentami obsługującymi wykonanie kodu — niezautoryzowane zdalne wykonanie kodu (RCE).

Pokaż oryginał (EN)

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.

🤖 Analiza AI
Jak działa

Mechanizm KeycloakSecurityPolicy wywołuje trzy sprawdzenia po kolei: odrzucenie żądania bez tokenu, walidację ról (tylko gdy requiredRoles jest niepuste) oraz walidację uprawnień (tylko gdy requiredPermissions jest niepuste). Kryptograficzna weryfikacja tokenu (podpis, wystawca, czas ważności dla JWT lub stan aktywności dla introspekcji) odbywa się wyłącznie wewnątrz sprawdzeń ról i uprawnień. Ponieważ domyślne wartości requiredRoles i requiredPermissions są puste — co odpowiada dokumentowanej konfiguracji 'Basic Setup' — sprawdzenia te są pomijane, a token nigdy nie jest weryfikowany. Wystarczy przesłać jakikolwiek niepusty ciąg znaków (w tym sfałszowany, niepodpisany JWT) w nagłówku Authorization: Bearer, aby żądanie dotarło do chronionej trasy bez żadnej weryfikacji po stronie Keycloak.

Skutki

Atakujący bez żadnych poświadczeń może uzyskać nieautoryzowany dostęp do chronionych tras Apache Camel, a w przypadku tras przekierowujących do producentów obsługujących wykonanie kodu — przeprowadzić zdalne wykonanie kodu (RCE) bez uwierzytelnienia.

Mitygacja

Zaleca się natychmiastową aktualizację do wersji 4.21.0 (lub 4.18.3 dla gałęzi 4.18.x). Jeśli aktualizacja nie jest możliwa natychmiast, należy zastosować obejście: skonfigurować niepuste requiredRoles lub requiredPermissions w każdej polityce KeycloakSecurityPolicy, ustawić allowTokenFromHeader na false tam gdzie token nie powinien być pobierany z nagłówka żądania, lub przeprowadzać weryfikację tokenu na poziomie warstwy frameworku przed polityką.

Kogo dotyczy

Apache Camel w wersjach od 4.15.0 przed 4.18.3 oraz od 4.19.0 przed 4.21.0, korzystających z komponentu camel-keycloak z KeycloakSecurityPolicy w domyślnej konfiguracji (puste requiredRoles i requiredPermissions).

Uwagi

Podatność jest niezależna od CVE-2026-23552, która dotyczyła weryfikacji pola issuer i została naprawiona przez dodanie sprawdzenia wewnątrz procedury weryfikacji — w tym przypadku procedura weryfikacji nie jest wywoływana w ogóle w domyślnej konfiguracji.

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Apache Camel

    APP
    Apache
    4.15.0 – 4.18.3 (bez)4.19.0 – 4.21.0 (bez)
🔵
ZWERYFIKUJ U PRODUCENTA
Brak jednoznacznych danych o patchu. Sprawdź referencje od producenta.
Tagi
RCEAuth Bypass
CWE
Referencje

Powiązane podatności

CVE-2026-78329CRITICAL9.8ten sam produkt

Improper input validation vulnerability in Apache Camel Undertow component. This issue affects Apache Camel...

CVE-2026-71300CRITICAL9.8ten sam produkt

Improper input validation vulnerability in Apache Camel Atmosphere Websocket component. This issue affects ...

CVE-2026-66906CRITICAL9.1ten sam produkt

Relative path traversal vulnerability in Apache Camel Azure Storage Blob component. This issue affects Apac...

CVE-2026-40047CRITICAL9.1PL ✓ten sam produkt

Apache Camel Docling — argument injection i path traversal w CLI

CVE-2026-46454CRITICAL9.8PL ✓ten sam produkt

Apache Camel Cometd: wstrzykiwanie nagłówków kontrolnych przez brak walidacji