Keycloak: authorization bypass
A flaw was found in the Keycloak package. This issue occurs due to a permissive regular expression hardcoded for filtering which allows hosts to register a dynamic client. A malicious user with enough information about the environment could jeopardize an environment with this specific Dynamic Client Registration and TrustedDomain configuration previously unauthorized.
- Published
- Apr 25, 2024
- Updated
- Jun 17, 2026
- EPSS
- 1.1% · 64th percentile
- CWE
- CWE-625
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
21
Monitor
Low priority for now.
- CVSS
- 21 / 40 · 5.4 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 1.1%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- —
- CNA · redhat
- 5.4
- NVD has not scored this yet; the score shown is the CNA’s.
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Affected systems
—
Versions reported by the vendor
Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.
github.com/keycloak/keycloak org.keycloak:keycloak-services
- 22.0.0 and later · before 22.0.10affected · semver
- 23.0.0 and later · before 24.0.3affected · semver
Red Hat Red Hat build of Keycloak 22
- 22.0.10-1 and laternot affected · rpm
- 22-13 and laternot affected · rpm
- 22-16 and laternot affected · rpm
Red Hat Red Hat build of Keycloak 22.0.10
- all versionsunknown
Red Hat Red Hat Single Sign-On 7.6 for RHEL 7
- 0:18.0.13-1.redhat_00001.1.el7sso and laternot affected · rpm
Red Hat Red Hat Single Sign-On 7.6 for RHEL 8
- 0:18.0.13-1.redhat_00001.1.el8sso and laternot affected · rpm
Red Hat Red Hat Single Sign-On 7.6 for RHEL 9
- 0:18.0.13-1.redhat_00001.1.el9sso and laternot affected · rpm
Red Hat RHEL-8 based Middleware Containers
- 7.6-46 and laternot affected · rpm
Red Hat RHSSO 7.6.8
- all versionsunknown
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Maven | org.keycloak:keycloak-services | from 23.0.0 · before 24.0.3 | 24.0.3 |
| Maven | org.keycloak:keycloak-services | before 22.0.10 | 22.0.10 |
| Red Hat:red_hat_single_sign_on:7.6::el7 | rh-sso7-keycloak | before 0:18.0.13-1.redhat_00001.1.el7sso | 0:18.0.13-1.redhat_00001.1.el7sso |
| Red Hat:red_hat_single_sign_on:7.6::el7 | rh-sso7-keycloak-server | before 0:18.0.13-1.redhat_00001.1.el7sso | 0:18.0.13-1.redhat_00001.1.el7sso |
| Red Hat:red_hat_single_sign_on:7.6::el8 | rh-sso7-keycloak | before 0:18.0.13-1.redhat_00001.1.el8sso | 0:18.0.13-1.redhat_00001.1.el8sso |
| Red Hat:red_hat_single_sign_on:7.6::el8 | rh-sso7-keycloak-server | before 0:18.0.13-1.redhat_00001.1.el8sso | 0:18.0.13-1.redhat_00001.1.el8sso |
| Red Hat:red_hat_single_sign_on:7.6::el9 | rh-sso7-keycloak | before 0:18.0.13-1.redhat_00001.1.el9sso | 0:18.0.13-1.redhat_00001.1.el9sso |
| Red Hat:red_hat_single_sign_on:7.6::el9 | rh-sso7-keycloak-server | before 0:18.0.13-1.redhat_00001.1.el9sso | 0:18.0.13-1.redhat_00001.1.el9sso |
Same product
red hat: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-2419Keycloak: path traversal in the redirect validation28Monitor
- CVE-2023-6484Keycloak: log injection during webauthn authentication or registration21Monitor
- CVE-2023-3597Keycloak: secondary factor bypass in step-up authentication20Monitor
- CVE-2023-0657Keycloak: impersonation via logout token exchange13Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| github.com/keycloak/keycloak org.keycloak:keycloak-services | 22.0.10 | Vendor (CNA) |
| github.com/keycloak/keycloak org.keycloak:keycloak-services | 24.0.3 | Vendor (CNA) |
| Maven:org.keycloak:keycloak-services | 22.0.10 | Package registry (OSV) |
| Maven:org.keycloak:keycloak-services | 24.0.3 | Package registry (OSV) |
| red hat:rh-sso7-keycloak | 0:18.0.13-1.redhat_00001.1.el7sso · Red Hat:red_hat_single_sign_on:7.6::el7 | Package registry (OSV) |
| red hat:rh-sso7-keycloak-server | 0:18.0.13-1.redhat_00001.1.el7sso · Red Hat:red_hat_single_sign_on:7.6::el7 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- low · data can be read
- Integrity
- low · data or configuration can be modified
- Availability
- none
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- Low
- Integrity impact
- Low
- Availability impact
- None
Weakness class (CWE)
CWE-625 · Permissive Regular ExpressionCVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
nvd-secondary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- access.redhat.com/errata/RHSA-2024:1860
- access.redhat.com/errata/RHSA-2024:1861
- access.redhat.com/errata/RHSA-2024:1862
- access.redhat.com/errata/RHSA-2024:1864
- access.redhat.com/errata/RHSA-2024:1866
- access.redhat.com/errata/RHSA-2024:1867
- access.redhat.com/errata/RHSA-2024:1868
- access.redhat.com/security/cve/CVE-2023-6544
- bugzilla.redhat.com/show_bug.cgi?id=2253116
Vendor advisories and official records. Exploit/PoC links are deliberately left out.