kbrain

CVE-2022-0866

MEDIUM · CVSS 5.3EPSS 0.9%EU EUVD

This is a concurrency issue that can result in the wrong caller principal being returned from the session context of an EJB that is configured with a RunAs principal. In particular, the org.jboss.as.ejb3.component.EJBComponent class has an incomingRunAsIdentity field. This field is used by the org.jboss.as.ejb3.security.RunAsPrincipalInterceptor to keep track of the current identity prior to switching to a new identity created using the RunAs principal. The exploit consist that the EJBComponent#incomingRunAsIdentity field is currently just a SecurityIdentity. This means in a concurrent environment, where multiple users are repeatedly invoking an EJB that is configured with a RunAs principal, it's possible for the wrong the caller principal to be returned from EJBComponent#getCallerPrincipal. Similarly, it's also possible for EJBComponent#isCallerInRole to return the wrong value. Both of these methods rely on incomingRunAsIdentity. Affects all versions of JBoss EAP from 7.1.0 and all versions of WildFly 11+ when Elytron is enabled.

Key facts

CVSS score
5.3 (v3.1)
Severity
MEDIUM
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness (CWE)
CWE-863
EPSS score
0.9% (59th percentile)
In CISA KEV
No
In EU EUVD
Yes (EUVD-2022-15908)
Published
May 10, 2022
NVD last modified
June 17, 2026
Status
Analyzed

EU Vulnerability Database (EUVD)

This vulnerability is also tracked by ENISA as EUVD-2022-15908 in the EU Vulnerability Database. Last updated in EUVD on August 2, 2024.

View on the EU Vulnerability Database

Affected products

  • redhat / jboss enterprise application platform
  • redhat / openstack platform
  • redhat / wildfly
  • redhat / wildfly

Certified products that may be affected

1 FIPS 140 or Common Criteria certified product, from automated matching by sec-certs.org.

References

Last updated September 17, 2026 · Source: NVD, CISA KEV, FIRST.org EPSS

Query CVEs from your AI assistant

The CVE/NVD Explorer brain answers CVE questions directly inside Claude, ChatGPT, or any MCP assistant — always up to date, no setup. Add it once and stop pasting advisories into chat.

Add the CVE brain
CVE-2022-0866: MEDIUM severity (CVSS 5.3)