CVE-2023-6236 Eap: oidc app attempting to access the second tenant, the user should be prompted to log

High 7.3 Published Updated

Attackers can bypass authentication in multi-tenant OIDC apps by reusing cached tokens across tenants with different provider URLs.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-6236?

CVE-2023-6236 is a high-severity authentication bypass vulnerability in Red Hat JBoss Enterprise Application Platform 7, published on 10 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A flaw was found in Red Hat Enterprise Application Platform 8. When an OIDC app that serves multiple tenants attempts to access the second tenant, it should prompt the user to log in again since the second tenant is secured with a different OIDC configuration. The underlying issue is in OidcSessionTokenStore when determining if a cached token should be used or not. This logic needs to be updated to take into account the new "provider-url" option in addition to the "realm" option. EAP-7 does not provide the vulnerable provider-url configuration option in its OIDC implementation and is not affected by this flaw.

Weakness: CWE-345

Which versions are affected by CVE-2023-6236?

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

PackageAffectedFixed in
org.wildfly.security:wildfly-elytron-http-oidc MavenAll versions2.2.5.Final
org.wildfly.security:wildfly-elytron-http-oidc MavenAll versions2.2.5.Final

How do I fix CVE-2023-6236?

Upgrade org.wildfly.security:wildfly-elytron-http-oidc to 2.2.5.Final or later.

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

Is CVE-2023-6236 being exploited?

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

Sources

Also known as GHSA-jpmx-996v-48fm.

Is CVE-2023-6236 in your software?

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

Check your SBOMs for free