CVE-2024-4629
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedA vulnerability was found in Keycloak. This flaw allows attackers to bypass brute force protection by exploiting the timing of login attempts. By initiating multiple login requests simultaneously, attackers can exceed the configured limits for failed attempts before the system locks them out. This timing loophole enables attackers to make more guesses at passwords than intended, potentially compromising account security on affected systems.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · moderate confidenceKeycloak's brute force protection has a race condition where simultaneous login requests are not properly tracked against failure limits before the lockout threshold is evaluated. Attackers can exploit this timing window by launching parallel login attempts to exceed the configured failed attempt threshold before the system can lock them out.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 24.0.3>= 22.0, < 22.012all versions>= 7.6, < 7.6.10= 4.11= 4.12= 4.9= 4.10= 4.9= 4.10= 4.9= 4.10CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify installed Keycloak versionAccess the Keycloak admin console and navigate to the Server Info section, or check the server startup logs for the version number. Alternatively, query the /health/ready endpoint if exposed.Affected if The installed version falls outside the patched ranges: Keycloak < 24.0.3, Keycloak Build >= 22.0 but < 22.012, or RH-SSO >= 7.6 but < 7.6.10 are vulnerable.
-
Confirm brute force protection is enabledIn the Keycloak admin console, navigate to Realm Settings > Security Defenses > Brute Force Detection. Verify that the 'Enabled' toggle is turned on.Affected if Brute force protection must be enabled for the race condition to be exploitable; if disabled, this specific flaw does not apply.
-
Review failure threshold and lockout configurationIn the same Brute Force Detection settings, note the values for 'Max Login Failures' and 'Wait Increment' or 'Lockout Duration'. These determine how many failures trigger lockout.Affected if Any non-zero failure threshold represents potential exposure; the race condition allows attackers to exceed this threshold within the timing window before lockout evaluation.
-
Check OpenShift container platform version if applicableIf Keycloak is deployed via RH-OCP, run 'oc get clusterversion' to determine the OCP version. For Linuxone, Power, or IBM Z systems, verify the specific build version.Affected if OCP versions 4.11, 4.12, 4.9, and 4.10 ship with vulnerable Keycloak versions and are affected.
You are affected if your Keycloak version is below the patched releases AND brute force protection is enabled, allowing attackers to bypass lockout via parallel login attempts.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped7.6.1022.01224.0.3
Apply the vendor patch when available; in the interim, implement additional authentication controls such as network-level rate limiting or multi-factor authentication to supplement Keycloak's built-in brute force protection.
Keycloak 24.0.3 (or 22.0.12 for 22.x builds); RHSSO 7.6.10
- Upgrade Keycloak to version 24.0.3 or later to remediate the vulnerability
- If running Keycloak build 22.x (versions 22.0 through 22.0.11), upgrade to version 22.0.12 or later
- For Red Hat Single Sign On (RHSSO) versions 7.6.x, upgrade to version 7.6.10 or later
- For OpenShift Container Platform deployments using the embedded Keycloak operator, apply the corresponding OCP update that includes the fixed Keycloak version (4.11 should upgrade to a version containing Keycloak 22.0.12+, 4.12 should upgrade to a version containing Keycloak 24.0.3+)
- After upgrading, verify that brute force protection is functioning correctly by testing with multiple simultaneous login attempts to confirm the lockout mechanism works as expected
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation4.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,408.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2024-4629 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2024-4629 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data