cve.bz

CVE-2021-4133 redhat keycloak: Incorrect Authorization

8.8 highEPSS 1.4%Fix available

High (8.8) in redhat keycloak. EPSS 1.4% estimated probability of exploitation activity in the next 30 days. Fixed in org.keycloak:keycloak-services 15.1.1.

On this page
A flaw was found in Keycloak in versions from 12.0.0 and before 15.1.1 which allows an attacker with any existing user account to create new default user accounts via the administrative REST API even when new user registration is disabled.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 73rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-863 Incorrect Authorization
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-4133 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-4133?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-4133?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-4133 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redhat:keycloakfrom 12.0.0 before 15.1.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-83x4-9cwr-5487Mavenorg.keycloak:keycloak-services<15.1.115.1.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatred_hat_single_sign_on:7.5::el7rh-sso7-keycloak, rh-sso7-keycloak-server0:15.0.2-3.redhat_00002.1.el7ssoRHSA-2021:5218
Red Hatred_hat_single_sign_on:7.5::el7rh-sso7-keycloak, rh-sso7-keycloak-server0:15.0.4-1.redhat_00001.1.el7ssoRHSA-2022:0151
Red Hatred_hat_single_sign_on:7.5::el8rh-sso7-keycloak, rh-sso7-keycloak-server0:15.0.2-3.redhat_00002.1.el8ssoRHSA-2021:5219
Red Hatred_hat_single_sign_on:7.5::el8rh-sso7-keycloak, rh-sso7-keycloak-server0:15.0.4-1.redhat_00001.1.el8ssoRHSA-2022:0152

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This flaw affects only Red Hat Single Sign-on 7.5.0. Red Hat Single Sign-on 7.4.x releases are NOT affected. Fix is available for download from customer portal which can be applied on RH-SSO 7.5.0

Red Hat's mitigation

Access to the user-creation functionality in the REST endpoint can be deactivated using CLI commands in undertow.

run:

bin/jboss-cli.sh --connect

/subsystem=undertow/configuration=filter/expression-filter=keycloakPathOverrideUsersCreateEndpoint:add( \

expression="(regex('^/auth/admin/realms/(.*)/users$') and method(POST))-> response-code(400)" \

)

/subsystem=undertow/server=default-server/host=default-host/filter-ref=keycloakPathOverrideUsersCreateEndpoint:add()

ProductPackageStateAdvisory
Red Hat Single Sign-On 7.5 for RHEL 7rh-sso7-keycloak-0:15.0.2-3.redhat_00002.1.el7ssoFixed 2021-12-20RHSA-2021:5218
Red Hat Single Sign-On 7.5 for RHEL 7rh-sso7-keycloak-0:15.0.4-1.redhat_00001.1.el7ssoFixed 2022-01-17RHSA-2022:0151
Red Hat Single Sign-On 7.5 for RHEL 8rh-sso7-keycloak-0:15.0.2-3.redhat_00002.1.el8ssoFixed 2021-12-20RHSA-2021:5219
Red Hat Single Sign-On 7.5 for RHEL 8rh-sso7-keycloak-0:15.0.4-1.redhat_00001.1.el8ssoFixed 2022-01-17RHSA-2022:0152
RHEL-8 based Middleware Containersrh-sso-7/sso75-openshift-rhel8:7.5-11Fixed 2022-01-04RHSA-2022:0015
RHEL-8 based Middleware Containersrh-sso-7/sso7-rhel8-operator-bundle:7.5.0-11Fixed 2022-01-04RHSA-2022:0015
RHEL-8 based Middleware Containersrh-sso-7/sso7-rhel8-operator-bundle:7.5.0-12Fixed 2022-01-05RHSA-2022:0034
RHEL-8 based Middleware Containersrh-sso-7/sso75-openshift-rhel8:7.5-15Fixed 2022-01-18RHSA-2022:0164
RHSSO 7.5.1keycloak-servicesFixed 2022-01-17RHSA-2022:0155
RHSSO 7.5 async for CVE-2021-4133keycloak-servicesFixed 2021-12-20RHSA-2021:5217
Red Hat A-MQ Onlinekeycloak-servicesNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-4133.

References

Check your stackJSON