Keycloak: unguarded admin rest api endpoints allows low privilege users to use administrative functionalities
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure, Privilege escalation, Security bypass
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Partial Red Hat: 2 fixed, 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-200, CWE-269 and CWE-284.
Summary
A flaw was found in Keycloak. Certain endpoints in Keycloak's admin REST API allow low-privilege users to access administrative functionalities. This flaw allows users to perform actions reserved for administrators, potentially leading to data breaches or system compromise.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | keycloak | before 24.0.5 | 24.0.5 | Patch available | CNA |
| Red Hat | Red Hat Build of Keycloak | — | — | Not affected | CNA |
| Red Hat | Red Hat Single Sign-On 7 | — | — | Not affected | CNA |
| Red Hat | Red Hat Build of Keycloak | — | — | No fix listed | CNA |
| Red Hat | Red Hat JBoss Enterprise Application Platform 8 | — | — | Not affected | CNA |
| Red Hat | Red Hat Single Sign-On 7 | — | — | No fix listed | CNA |
| — | org.keycloak:keycloak-services (Maven) | before 24.0.5 | 24.0.5 | Patch available | GHSA-2cww-fgmg-4jqc |
- keycloak Vendor— Affected before 24.0.5 Fixed in 24.0.5 Patch available CNA
- Red Hat Build of Keycloak VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat Single Sign-On 7 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat Build of Keycloak VendorRed Hat Affected — Fixed in — No fix listed CNA
- Red Hat JBoss Enterprise Application Platform 8 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat Single Sign-On 7 VendorRed Hat Affected — Fixed in — No fix listed CNA
- org.keycloak:keycloak-services (Maven) Vendor— Affected before 24.0.5 Fixed in 24.0.5 Patch available GHSA-2cww-fgmg-4jqc
CPE names CNA · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:/a:redhat:build_keycloak:24 | 24 | — | Red Hat |
| cpe:/a:redhat:red_hat_single_sign_on:7.6 | 7.6 | — | Red Hat |
| cpe:/a:redhat:build_keycloak: | — | — | Red Hat |
| cpe:/a:redhat:jboss_enterprise_application_platform:8 | 8 | — | Red Hat |
| cpe:/a:redhat:red_hat_single_sign_on:7 | 7 | — | Red Hat |
- cpe:/a:redhat:build_keycloak:24 Versions 24 — ·Red Hat
- cpe:/a:redhat:red_hat_single_sign_on:7.6 Versions 7.6 — ·Red Hat
- cpe:/a:redhat:build_keycloak: Versions — — ·Red Hat
- cpe:/a:redhat:jboss_enterprise_application_platform:8 Versions 8 — ·Red Hat
- cpe:/a:redhat:red_hat_single_sign_on:7 Versions 7 — ·Red Hat
Remediation
- Fix · CNA keycloak Fixed in 24.0.5
- Fix · GHSA-2cww-fgmg-4jqc org.keycloak:keycloak-services (Maven) Fixed in 24.0.5 Advisory →
Red Hat 2 advisories
- RHSA-2024:3575 Released 2024-06-03 · Red Hat rating LowRed Hat build of Keycloak 24.0.5 enhancement and security update
- Red Hat Build of Keycloak
- RHSA-2024:3572 Released 2024-06-03 · Red Hat rating LowRed Hat Single Sign-On 7.6.9 security update
- Red Hat Single Sign-On 7
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Build of Keycloak | Affected | No fix yet |
| Red Hat Single Sign-On 7 | Affected | No fix yet |
| Red Hat Build of Keycloak | Fixed | RHSA-2024:3575 |
| Red Hat Single Sign-On 7 | Fixed | RHSA-2024:3572 |
Not affected: 1 product
- Red Hat JBoss Enterprise Application Platform 8
Timeline
- 2026-10-02 Threatist record created from CVE-2024-3656
- 2026-10-03 Alias added: GHSA-2cww-fgmg-4jqc
References
Advisory 4
Other 8
- https://access.redhat.com/security/cve/CVE-2024-3656
- RHBZ#2274403
- https://github.com/keycloak/keycloak/security/advisories/GHSA-2cww-fgmg-4jqc
- https://github.com/keycloak/keycloak/commit/d9f0c84b797525eac55914db5f81a8133ef5f9b1
- https://github.com/hnsecurity/vulns/blob/main/HNS-2024-08-Keycloak.md
- https://github.com/keycloak/keycloak
- https://news.ycombinator.com/item?id=42136000
- https://security.humanativaspa.it/an-analysis-of-the-keycloak-authentication-system
More Red Hat vulnerabilities
- TI-2019-15875 Protection mechanism failure in Jenkins Pipeline: Groovy Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-15874 Protection mechanism failure in Jenkins Script Security Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-08259 Underflow in PHP-FPM can lead to RCE KEVCVSS 3.1CRITICAL 9.8
- TI-2019-05363 Code injection in Elastic Kibana KEVCVSS 3.1CRITICAL 10.0
- TI-2019-03949 Out-of-bounds write in ESXi and Horizon DaaS KEVCVSS 3.1CRITICAL 9.8
- TI-2018-16080 A code execution vulnerability exists in the Stapler web framework used by Jenkins 2.153… KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2024-3656 · CVE Program
- CVE-2024-3656 · NVD
- FIRST EPSS
- GHSA-2cww-fgmg-4jqc · GitHub Advisory Database · CC BY 4.0
- CVE-2024-3656 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences