{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-0866","published":"2022-05-10T21:15:08.817000Z","last_modified":"2026-06-17T04:21:23.847000Z","status":"Analyzed","cvss":{"version":"3.1","score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-863"],"cpes":[{"criteria":"cpe:2.3:a:redhat:jboss_enterprise_application_platform:*:*:*:*:*:*:*:*","part":"a","vendor":"redhat","product":"jboss_enterprise_application_platform","version_start_including":"7.1.0"},{"criteria":"cpe:2.3:a:redhat:openstack_platform:13.0:*:*:*:*:*:*:*","part":"a","vendor":"redhat","product":"openstack_platform","version":"13.0"},{"criteria":"cpe:2.3:a:redhat:wildfly:*:*:*:*:*:*:*:*","part":"a","vendor":"redhat","product":"wildfly","version_start_including":"11.0.0","version_end_excluding":"26.1.1"},{"criteria":"cpe:2.3:a:redhat:wildfly:27.0.0:alpha1:*:*:*:*:*:*","part":"a","vendor":"redhat","product":"wildfly","version":"27.0.0"}],"cpes_truncated":false,"vendors":["redhat"],"products":["redhat/jboss_enterprise_application_platform","redhat/openstack_platform","redhat/wildfly"],"epss":{"score":0.00832,"percentile":0.54841,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"server","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":47,"links":{"html_es":"/es/cve/CVE-2022-0866/","html_en":"/en/cve/CVE-2022-0866/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-0866","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-0866"},"untrusted":{"vendor_name":"Redhat","product_name":"Jboss Enterprise Application Platform","desc_en":"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":[],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2060929#c0","tags":["Issue Tracking","Mitigation","Vendor Advisory"]}]}}