Medium severity · published May 10, 2022
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
5.3
CVSS
0.9%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
Low
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.9% · higher than 60% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
JE
Jboss Enterprise Application Platform · Redhat
7.1.0 and later · source: NVD
OP
Openstack Platform · Redhat
13.0 · source: NVD
WI
Wildfly · Redhat
11.0.0 before 26.1.1; 27.0.0 · source: NVD
Affected product
JE
Jboss Enterprise Application Platform
Redhat
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-0866
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-0866
Issue Tracking
https://bugzilla.redhat.com/show_bug.cgi?id=2060929#c0
More from Jboss Enterprise Application Platform
9.8
CVE-2017-12149
Red Hat JBoss Application Server Remote Code Execution Vulnerability
8.8
CVE-2010-1871
Red Hat Linux JBoss Seam 2 Remote Code Execution Vulnerability
8.1
CVE-2017-12617
When running Apache Tomcat versions 9.0.0.M1 to 9.0.0, 8.5.0 to 8.5.22, 8.0.0.RC1 to 8.0.46 and 7.0.0 to 7.0.81 with HTTP PUTs enabled (e.g
7.5
CVE-2010-1428
Red Hat JBoss Information Disclosure Vulnerability
5.3
CVE-2010-0738
Red Hat JBoss Authentication Bypass Vulnerability
