Auth bypass in Red Hat Jboss Enterprise Application Platform
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 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.
Vulnerability class: Broken Access Control
EPSS: 0.009 (57.5th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
Affected products
- Redhat Jboss_enterprise_application_platform
- Redhat Openstack_platform — versions 13.0
- Redhat Wildfly — versions 27.0.0
- N/a Wildfly — versions JBoss EAP from 7.1.0 and all versions of WildFly 11+ when Elytron is enabled.
Weakness classification (CWE)
Public proof-of-concept exploits
References
- secalert@redhat.com (x_refsource_MISC, Mitigation, Issue Tracking, Vendor Advisory)
Frequently asked questions
- What is CVE-2022-0866?
- CVE-2022-0866 is a medium-severity vulnerability in Red Hat Jboss Enterprise Application Platform, classified under Incorrect Authorization. CVSS score: 5.3/10. Published 2022-05-10.
- How severe is CVE-2022-0866?
- Medium severity. CVSS v3 base score is 5.3 out of 10.
- Is CVE-2022-0866 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.