{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-0866","id":"CVE-2022-0866","title":"This is a concurrency issue that can result in the wrong caller principal being returned from the session context of…","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 switc","descriptionLong":"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.","published":"2022-05-10T20:20:35.000Z","updated":"2026-10-28T02:30:55.885315447Z","reserved":"2022-03-04T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"NVD"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":["Wildfly"],"affectedProducts":[{"vendor":"n/a","product":"Wildfly","defaultStatus":null,"versions":[{"status":"affected","version":"JBoss EAP from 7.1.0 and all versions of WildFly 11+ when Elytron is enabled."}],"platforms":[]}],"packages":[],"cwes":["CWE-863"],"aliases":["BIT-wildfly-2022-0866"],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2060929#c0","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Mitigation","Vendor Advisory","report"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0866.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0866","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00902,"epssPercentile":0.60426,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-0866","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0866","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-0866","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-0866","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}