Skip to content
OpenAdvisories
Unscored CVE-2022-0866 EUVD-2022-15908GHSA-pjxg-p9c7-7c3v

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…

Published May 10, 2022 · Updated Aug 2, 2024 · 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.

Affected products

VendorProductAffectedFixed
— Wildfly JBoss EAP from 7.1.0 and all versions of WildFly 11+ when Elytron is enabled. —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat Single Sign On 7 rh-sso7 +1 1-5.el9sso RHSA-2022:7411
Red Hat Single Sign On 7 rh-sso7-javapackages-tools +2 6.0.0-7.el9sso RHSA-2022:7411
Red Hat Single Sign On 7 rh-sso7-keycloak +1 15.0.8-1.redhat_00001.1.el7sso RHSA-2022:7411, RHSA-2022:7410, RHSA-2022:7409
Red Hat JBoss EAP 7 eap7-activemq-artemis +15 2.16.0-9.redhat_00042.1.el7eap RHSA-2022:4919, RHSA-2022:4918
Red Hat JBoss EAP 7 eap7-h2database 1.4.197-2.redhat_00004.1.el7eap RHSA-2022:4919, RHSA-2022:4918
Red Hat JBoss EAP 7 eap7-hal-console 3.3.12-1.Final_redhat_00001.1.el7eap RHSA-2022:4919, RHSA-2022:4918
Red Hat JBoss EAP 7 eap7-jackson-databind 2.12.6.1-1.redhat_00003.1.el7eap RHSA-2022:4919, RHSA-2022:4918
Red Hat JBoss EAP 7 eap7-jboss-xnio-base 3.8.7-1.SP1_redhat_00001.1.el7eap RHSA-2022:4919, RHSA-2022:4918
Red Hat JBoss EAP 7 eap7-netty +27 4.1.72-4.Final_redhat_00001.1.el7eap RHSA-2022:4919, RHSA-2022:4918
Red Hat JBoss EAP 7 eap7-undertow 2.2.17-2.SP4_redhat_00001.1.el7eap RHSA-2022:4919, RHSA-2022:4918
Red Hat JBoss EAP 7 eap7-wildfly +4 7.4.5-3.GA_redhat_00001.1.el7eap RHSA-2022:4919, RHSA-2022:4918
Red Hat JBoss EAP 7 eap7-wildfly-http-client +4 1.1.11-1.SP1_redhat_00001.1.el7eap RHSA-2022:4919, RHSA-2022:4918
Red Hat JBoss EAP 7 eap7-xerces-j2 2.12.0-3.SP04_redhat_00001.1.el7eap RHSA-2022:4919, RHSA-2022:4918

Advisories 7

References