CVE-2026-135768

keycloak-services: keycloak-services: Policy-selected OTP flow accepts password SSO

Published n/a CVSS 3.1 · 6.8 Medium EPSS n/a KEV · Not listed
Description
A flaw was found in the keycloak-services component of Keycloak, which is used for managing authentication and authorization flows. The issue occurs when a client policy is configured to enforce a high-assurance authentication flow requiring OTP. Due to improper validation of existing sessions, a lower-assurance password-only SSO session can be incorrectly accepted if the request does not explicitly demand a specific assurance level. This allows an attacker with access to a user's password or session to bypass the second factor and obtain tokens claiming a higher level of security.

Analysis

AI-generated

Technical impact

The vulnerability arises in the keycloak-services component of Keycloak. When a client policy mandates a high‑assurance OTP flow, the system fails to properly validate existing sessions. As a result, a password‑only SSO session can be mistakenly accepted if the request does not explicitly require a higher assurance level. An attacker who has access to a user’s password or a valid session can therefore bypass the second‑factor authentication and obtain tokens that claim a higher level of security. This permits the attacker to impersonate the user or gain unauthorized access to protected resources attached to those tokens.

Affected Systems

Keycloak’s keycloak-services component is impacted. No specific product versions are listed in the advisory, so all releases of Keycloak that include keycloak-services may be vulnerable until a patch is applied.

Risk and Exploitability

The vulnerability carries a CVSS score of 6.8, indicating a moderate‑to‑high severity. The EPSS score is not available, and the issue is not listed in the CISA KEV catalog. Exploitation requires an attacker to possess a user’s password or an active session; the attack vector is likely remote, as the flaw is triggered through the normal authentication and authorization flow. Improper session validation enables the attacker to elevate their authentication assurance within the application.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Keycloak update that addresses the keycloak-services session validation flaw.
  • Modify client policies to enforce explicit OTP requirements and disable fallback to lower assurance levels.
  • Enable strict session integrity checks or configure session time‑outs to reduce the window for reusing compromised sessions.

Generated by OpenCVE AI on November 24, 2026 at 13:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description A flaw was found in the keycloak-services component of Keycloak, which is used for managing authentication and authorization flows. The issue occurs when a client policy is configured to enforce a high-assurance authentication flow requiring OTP. Due to improper validation of existing sessions, a lower-assurance password-only SSO session can be incorrectly accepted if the request does not explicitly demand a specific assurance level. This allows an attacker with access to a user's password or session to bypass the second factor and obtain tokens claiming a higher level of security.
Title keycloak-services: keycloak-services: Policy-selected OTP flow accepts password SSO
Weaknesses CWE-287
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N'}

threat_severity

Moderate

Subscriptions

No data.

Weaknesses

Sources