Keycloak: path traversal in the redirect validation
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Spoofing, Security bypass
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-601 and CWE-346.
Summary
A flaw was found in Keycloak's redirect_uri validation logic. This issue may allow a bypass of otherwise explicitly allowed hosts. A successful attack may lead to the theft of an access token, making it possible for the attacker to impersonate other users. It is very similar to CVE-2023-6291.
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 22.0.10; 23.0.0 to before 24.0.3 | 22.0.10, 24.0.3 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 22 | — | 22.0.10-1 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 22 | — | 22-13 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 22 | — | 22-16 | Patch available | CNA |
| — | org.keycloak:keycloak-services (Maven) | before 22.0.10 | 22.0.10 | Patch available | GHSA-mrv8-pqfj-7gp5 |
| — | org.keycloak:keycloak-services (Maven) | 23.0.0 to before 24.0.3 | 24.0.3 | Patch available | GHSA-mrv8-pqfj-7gp5 |
- keycloak Vendor— Affected before 22.0.10; 23.0.0 to before 24.0.3 Fixed in 22.0.10, 24.0.3 Patch available CNA
- Red Hat build of Keycloak 22 VendorRed Hat Affected — Fixed in 22.0.10-1 Patch available CNA
- Red Hat build of Keycloak 22 VendorRed Hat Affected — Fixed in 22-13 Patch available CNA
- Red Hat build of Keycloak 22 VendorRed Hat Affected — Fixed in 22-16 Patch available CNA
- org.keycloak:keycloak-services (Maven) Vendor— Affected before 22.0.10 Fixed in 22.0.10 Patch available GHSA-mrv8-pqfj-7gp5
- org.keycloak:keycloak-services (Maven) Vendor— Affected 23.0.0 to before 24.0.3 Fixed in 24.0.3 Patch available GHSA-mrv8-pqfj-7gp5
Remediation
- Fix · CNA keycloak Fixed in 22.0.10, 24.0.3
- Fix · GHSA-mrv8-pqfj-7gp5 org.keycloak:keycloak-services (Maven) Fixed in 22.0.10 Advisory →
- Fix · GHSA-mrv8-pqfj-7gp5 org.keycloak:keycloak-services (Maven) Fixed in 24.0.3 Advisory →
Red Hat 1 advisory
- RHSA-2024:1867 Released 2024-04-16 · Red Hat rating ModerateRed Hat build of Keycloak 22.0.10 enhancement and security update
- Red Hat build of Keycloak 22 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
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 22 | Fixed | RHSA-2024:1867 |
Timeline
- 2026-10-02 Threatist record created from CVE-2024-2419
- 2026-10-03 Alias added: GHSA-mrv8-pqfj-7gp5
References
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-2419 · CVE Program
- CVE-2024-2419 · NVD
- FIRST EPSS
- GHSA-mrv8-pqfj-7gp5 · GitHub Advisory Database · CC BY 4.0
- CVE-2024-2419 · 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