AI Security AI安全 3h ago Updated 1h ago 更新于 1小时前 44

Critical Keycloak Password Reset Flaw Could Let Unauthenticated Attackers Take Over Any Account 关键Keycloak密码重置漏洞可能让未认证攻击者接管任意账户

Critical vulnerability (CVE-2026-18963, CVSS 9.1) in Keycloak allows unauthenticated remote attackers to bypass password reset token validation and take over any user account, including admin accounts Root cause is improper state validation within the reset-credentials authentication flow, allowing attackers to skip the email action token requirement entirely Red Hat released patches for RHBK 26.4.15 and 26.6.6, with upstream Keycloak fixed in version 26.7.2; temporary mitigation involves disabl Keycloak存在关键安全漏洞CVE-2026-18963(CVSS 9.1),未认证攻击者可强制密码重置接管任意账户 漏洞根因是reset-credentials认证流程中的状态验证缺陷,攻击者无需用户交互即可利用 Red Hat发布补丁,上游Keycloak需更新至26.7.2,RHBK需更新至26.4.15和26.6.6 临时缓解措施:关闭所有realm的"忘记密码"功能 该漏洞与近期Keycloak其他安全修复(CVE-2026-15571等)共同凸显身份管理系统的攻击面风险

68
Hot 热度
62
Quality 质量
58
Impact 影响力

Analysis 深度分析

TL;DR

  • Critical vulnerability (CVE-2026-18963, CVSS 9.1) in Keycloak allows unauthenticated remote attackers to bypass password reset token validation and take over any user account, including admin accounts
  • Root cause is improper state validation within the reset-credentials authentication flow, allowing attackers to skip the email action token requirement entirely
  • Red Hat released patches for RHBK 26.4.15 and 26.6.6, with upstream Keycloak fixed in version 26.7.2; temporary mitigation involves disabling the "Forgot password" feature across all realms
  • This is part of a broader pattern of security issues in Keycloak, with 26.7.2 addressing eight CVEs and 26.7.1 fixing twelve CVEs in the preceding release

Why It Matters

This vulnerability directly impacts organizations relying on Keycloak as their identity and access management backbone, as successful exploitation grants complete account takeover without any user interaction or authentication. Given that Keycloak serves as a central authentication gateway for countless enterprise applications, compromising it can provide attackers with a foothold into all systems protected by that identity provider.

Technical Details

  • Vulnerability: CVE-2026-18963, CWE-640 (weak password recovery mechanism), CVSS 9.1, classified as Critical by Red Hat acting as the CVE Numbering Authority
  • Attack vector: An unauthenticated remote attacker sends a specially crafted request to the reset-credentials endpoint, causing the authentication session to transition directly to the password update phase without requiring the email-delivered action token
  • Affected versions: Upstream Keycloak before 26.7.2; Red Hat Build of Keycloak (RHBK) 26.4 before operator bundle 26.4.15-1 and container images 26.4-23; RHBK 26.6 before operator bundle 26.6.6-1 and container images 26.6-12
  • Mitigation: Disable the "Forgot password" functionality across all realms via Realm settings > Login > Forgot password in the RHBK administration console until patched
  • Related fixes: Keycloak 26.7.2 also addresses CVE-2026-15571 (predictable account-linking hash enabling OIDC-based account takeover); 26.7.1 fixed twelve CVEs including SAML broker login bypass and role forgery via dynamic client registration

Industry Insight

  • Organizations using Keycloak should prioritize patching immediately, especially those with the "Forgot password" feature enabled in any realm; the temporary mitigation of disabling this feature is a reasonable short-term stopgap for environments where password self-service is not critical
  • The rapid succession of critical CVEs across consecutive Keycloak releases (twelve in 26.7.1, eight in 26.7.2) signals systemic security debt that warrants deeper architectural review of authentication flows, particularly around state management and token validation
  • Identity and access management platforms are increasingly targeted as high-value attack surfaces; this incident reinforces the need for defense-in-depth strategies where compromising the IAM layer does not grant unrestricted access to all downstream systems.

TL;DR

  • Keycloak存在关键安全漏洞CVE-2026-18963(CVSS 9.1),未认证攻击者可强制密码重置接管任意账户
  • 漏洞根因是reset-credentials认证流程中的状态验证缺陷,攻击者无需用户交互即可利用
  • Red Hat发布补丁,上游Keycloak需更新至26.7.2,RHBK需更新至26.4.15和26.6.6
  • 临时缓解措施:关闭所有realm的"忘记密码"功能
  • 该漏洞与近期Keycloak其他安全修复(CVE-2026-15571等)共同凸显身份管理系统的攻击面风险

为什么值得看

Keycloak作为广泛使用的开源身份和访问管理服务器,此漏洞可导致完全账户接管,包括管理员账户,对依赖其进行身份验证的企业构成严重威胁。该漏洞揭示了密码恢复机制中的状态管理缺陷,为安全从业者提供了身份验证流程安全设计的重要案例。

技术解析

  • 漏洞类型:CWE-640(忘记密码的弱密码恢复机制),CVSS评分9.1
  • 攻击向量:攻击者向reset-credentials端点发送特制请求,认证会话直接跳转到密码更新阶段,无需邮件验证令牌
  • 影响范围:可导致任意用户账户(包括管理员账户)的完全接管
  • 修复版本:上游Keycloak 26.7.2,RHBK 26.4.15和26.6.6
  • 临时缓解:在Realm设置的Login选项中关闭"Forgot password"功能

行业启示

  • 身份管理系统的安全修复需要快速响应,建议企业立即检查Keycloak版本并应用补丁
  • 密码恢复机制应实施多重验证,避免单一状态转换即可绕过安全控制
  • 开源组件的安全维护依赖社区响应速度,企业应建立漏洞监控和快速更新机制

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Security 安全 Open Source 开源