vulnerability
Red Hat JBoss EAP: CVE-2022-0866: Incorrect Authorization
| Severity | CVSS | Published | Added | Modified |
|---|---|---|---|---|
| 4 | (AV:N/AC:M/Au:N/C:P/I:N/A:N) | May 3, 2022 | Sep 19, 2024 | Jan 12, 2026 |
Severity
4
CVSS
(AV:N/AC:M/Au:N/C:P/I:N/A:N)
Published
May 3, 2022
Added
Sep 19, 2024
Modified
Jan 12, 2026
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.. A flaw was found in Wildfly, where it returns an incorrect caller principal under certain heavily concurrent situations when Elytron Security is used. This flaw allows an attacker to gain improper access to information they should not have.
Solution
red-hat-jboss-eap-upgrade-latest
References
- CWE-863
- CVE-2022-0866
- https://attackerkb.com/topics/CVE-2022-0866
- URL-https://access.redhat.com/security/cve/CVE-2022-0866
- URL-https://bugzilla.redhat.com/show_bug.cgi?id=2060929
- URL-https://access.redhat.com/errata/RHSA-2022:4918
- URL-https://access.redhat.com/errata/RHSA-2022:4919
- URL-https://access.redhat.com/errata/RHSA-2022:4922
NEW
Explore Exposure Command
Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.