# CVE-2022-0866: This is a concurrency issue that can result in the wrong caller principal being returned from the session context of an EJB that is configu…

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.90%, higher than 60% of CVEs (2026-12-02)
- Published: 2022-05-10T20:20:35.000Z
- Modified: 2026-09-08T08:48:21.551Z
- Also known as: BIT-WILDFLY-2022-0866
- Weaknesses: CWE-863
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- Wildfly: JBoss EAP from 7.1.0 and all versions of WildFly 11+ when Elytron is enabled.
- redhat jboss_enterprise_application_platform: from 7.1.0
- redhat openstack_platform: 13.0
- redhat wildfly: from 11.0.0 before 26.1.1; 27.0.0
- wildfly (Bitnami): from 11.0.0 before 26.1.1

## Every score

- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2060929#c0> (advisory, issue-tracking, mitigation, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-0866> (web)

## Sources

- CVE List: [CVE-2022-0866](https://www.cve.org/CVERecord?id=CVE-2022-0866), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2022-0866](https://nvd.nist.gov/vuln/detail/CVE-2022-0866), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-WILDFLY-2022-0866](https://osv.dev/vulnerability/BIT-WILDFLY-2022-0866), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-0866 · Whole record: https://cve.day/CVE-2022-0866.json · Rebuilt by cve.day 2026-11-25T22:58:11.548Z
