CVE-2024-12369 Elytron-oidc-client: oidc authorization code injection

Medium 4.2 Published Updated

Attackers can inject stolen authorization codes to hijack victim sessions in Red Hat JBoss EAP OIDC clients, leading to account takeover.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-12369?

CVE-2024-12369 is a medium-severity authentication bypass vulnerability in Red Hat Build of Keycloak, published on 9 Dec 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A vulnerability was found in OIDC-Client. When using the RH SSO OIDC adapter with EAP 7.x or when using the elytron-oidc-client subsystem with EAP 8.x, authorization code injection attacks can occur, allowing an attacker to inject a stolen authorization code into the attacker's own session with the client with a victim's identity. This is usually done with a Man-in-the-Middle (MitM) or phishing attack.

Weakness: CWE-345

Which versions are affected by CVE-2024-12369?

8 open source packages ship an affected version, including org.wildfly.security:wildfly-elytron and org.wildfly.security:wildfly-elytron-http-oidc.

PackageAffectedFixed in
org.wildfly.security:wildfly-elytron MavenFrom 1.17.0.Final2.2.9.Final
org.wildfly.security:wildfly-elytron MavenFrom 1.17.0.Final2.2.9.Final
org.wildfly.security:wildfly-elytron MavenFrom 2.3.0.Final2.6.2.Final
org.wildfly.security:wildfly-elytron MavenFrom 2.3.0.Final2.6.2.Final
org.wildfly.security:wildfly-elytron-http-oidc MavenFrom 1.17.0.Final2.2.9.Final
org.wildfly.security:wildfly-elytron-http-oidc MavenFrom 1.17.0.Final2.2.9.Final
2 more packages
org.wildfly.security:wildfly-elytron-http-oidc MavenFrom 2.3.0.Final2.6.2.Final
org.wildfly.security:wildfly-elytron-http-oidc MavenFrom 2.3.0.Final2.6.2.Final

How do I fix CVE-2024-12369?

Upgrade org.wildfly.security:wildfly-elytron to a fixed version for your release line: 2.2.9.Final or 2.6.2.Final.

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

Is CVE-2024-12369 being exploited?

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

Sources

Also known as GHSA-5565-3c98-g6jc.

Is CVE-2024-12369 in your software?

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

Check your SBOMs for free