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

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

- **Severity:** High 7.3 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 10 Apr 2024
- **Updated:** 20 Nov 2025
- **Also known as:** GHSA-jpmx-996v-48fm

## 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 (Insufficient Verification of Data Authenticity)

## Which versions are affected by CVE-2023-6236?

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


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.wildfly.security:wildfly-elytron-http-oidc` | Maven | All versions | 2.2.5.Final |
| `org.wildfly.security:wildfly-elytron-http-oidc` | Maven | All versions | 2.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.

## Is CVE-2023-6236 being exploited?

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

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-6236 and fix it if it is affected.

What it is: 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.
Exploitation: There is no known exploitation of CVE-2023-6236 in the wild and no public exploit code.

Affected packages and fixed versions:
- org.wildfly.security:wildfly-elytron-http-oidc (Maven): affected all versions; fixed in 2.2.5.Final
- org.wildfly.security:wildfly-elytron-http-oidc (Maven): affected all versions; fixed in 2.2.5.Final

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-6236/ (Markdown: https://insights.sbomify.com/CVE-2023-6236/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-6236
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-6236
- OSV: https://osv.dev/vulnerability/CVE-2023-6236

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-6236/
Summaries are generated and may contain mistakes; the official description above is the record.
