Skip to content
Fencer Vulns
high 7.5

CVE-2021-3513 json

Incorrect implementation of lockout feature in Keycloak

published 2022-08-22 4 y ago modified 2026-06-17 4 mo ago also GHSA-xv7h-95r7-595j , EUVD-2022-6648

cvss
7.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.8%
EPSS 0.8% chance of exploitation in 30 days, percentile 57%
public exploits
0
none known

Summary

A flaw was found in keycloak where a brute force attack is possible even when the permanent lockout feature is enabled. This is due to a wrong error message displayed when wrong credentials are entered. The highest threat from this vulnerability is to confidentiality.

Patch / fix

  • maven org.keycloak:keycloak-parent 13.0.0
  • redhat keycloak 13.0.0
  • rh-sso7-keycloak red hat single sign on 7 9.0.15-1.redhat_00002.1.el8sso
  • rh-sso7-keycloak-server red hat single sign on 7 9.0.15-1.redhat_00002.1.el8sso
  • rh-sso7-keycloak red hat single sign on 7 9.0.15-1.redhat_00002.1.el7sso
  • rh-sso7-keycloak-server red hat single sign on 7 9.0.15-1.redhat_00002.1.el7sso
  • rh-sso7-keycloak red hat single sign on 7 9.0.15-1.redhat_00002.1.el6sso
  • rh-sso7-keycloak-server red hat single sign on 7 9.0.15-1.redhat_00002.1.el6sso

red hat advisories RHSA-2021:3529RHSA-2021:3528RHSA-2021:3527

  • keycloak Arch Linux 13.0.0-1

arch linux advisories AVG-1926

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-3513 updated cvss 7.5

keycloak: Brute force attack is possible even after the account lockout

  • Red Hat Single Sign-On 7.4 for RHEL 6 Server rh-sso7-keycloak 9.0.15-1.redhat_00002.1.el6sso, rh-sso7-keycloak-server 9.0.15-1.redhat_00002.1.el6sso
    fixed: vendor fix RHSA-2021:3527
  • Red Hat Single Sign-On 7.4 for RHEL 7 Server rh-sso7-keycloak 9.0.15-1.redhat_00002.1.el7sso, rh-sso7-keycloak-server 9.0.15-1.redhat_00002.1.el7sso
    fixed: vendor fix RHSA-2021:3528
  • Red Hat Single Sign-On 7.4 for RHEL 8 rh-sso7-keycloak 9.0.15-1.redhat_00002.1.el8sso, rh-sso7-keycloak-server 9.0.15-1.redhat_00002.1.el8sso
    fixed: vendor fix RHSA-2021:3529
  • Red Hat Single Sign-On 7.4.9
    fixed: vendor fix RHSA-2021:3534

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.82% chance of exploitation in the next 30 days, higher than 57% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
maven org.keycloak:keycloak-parent
<13.0.0
13.0.0

Affected products

  • n/a keycloak

Classification

Weakness
  • CWE-522 Insufficiently Protected Credentials
  • CWE-209 Generation of Error Message Containing Sensitive Information

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.