CVE-2023-3597 Keycloak: secondary factor bypass in step-up authentication

Medium 5.0 Published Updated

Remote attackers can bypass step-up authentication by registering a false second factor, leading to unauthorized account access.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-3597?

CVE-2023-3597 is a medium-severity authentication bypass vulnerability in Red Hat RHSSO 7.6.8, published on 25 Apr 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A flaw was found in Keycloak, where it does not correctly validate its client step-up authentication in org.keycloak.authentication. This flaw allows a remote user authenticated with a password to register a false second authentication factor along with an existing one and bypass authentication.

Weakness: CWE-287

Which versions are affected by CVE-2023-3597?

4 open source packages ship an affected version, including org.keycloak:keycloak-services.

PackageAffectedFixed in
org.keycloak:keycloak-services MavenAll versions22.0.10
org.keycloak:keycloak-services MavenAll versions22.0.10
org.keycloak:keycloak-services MavenFrom 23.0.024.0.3
org.keycloak:keycloak-services MavenFrom 23.0.024.0.3

How do I fix CVE-2023-3597?

Upgrade org.keycloak:keycloak-services to a fixed version for your release line: 22.0.10 or 24.0.3.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2023-3597 being exploited?

There is no known exploitation of CVE-2023-3597 in the wild and no public exploit code.

Sources

Also known as GHSA-4f53-xh3v-g8x4.

Is CVE-2023-3597 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free