cve.bz

CVE-2022-0866 redhat: Incorrect Authorization

5.3 mediumEPSS 0.9%

Medium (5.3) in redhat. EPSS 0.9% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 61st percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-863 Incorrect Authorization
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-0866 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-0866?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-0866?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-0866 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redhat:jboss_enterprise_application_platform7.1.0 and later
redhat:openstack_platform13.0
redhat:wildflyfrom 11.0.0 before 26.1.1
redhat:wildfly27.0.0:alpha1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-activemq-artemis, eap7-activemq-artemis-ra, eap7-activemq-artemis-cli and 13 more0:2.16.0-9.redhat_00042.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-h2database0:1.4.197-2.redhat_00004.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-hal-console0:3.3.12-1.Final_redhat_00001.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jackson-databind0:2.12.6.1-1.redhat_00003.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jboss-xnio-base0:3.8.7-1.SP1_redhat_00001.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-netty, eap7-netty-all, eap7-netty-codec and 25 more0:4.1.72-4.Final_redhat_00001.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-undertow0:2.2.17-2.SP4_redhat_00001.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-wildfly, eap7-wildfly-modules, eap7-wildfly-javadocs and 2 more0:7.4.5-3.GA_redhat_00001.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-wildfly-http-client, eap7-wildfly-http-ejb-client, eap7-wildfly-http-client-common and 2 more0:1.1.11-1.SP1_redhat_00001.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-xerces-j20:2.12.0-3.SP04_redhat_00001.1.el7eapRHSA-2022:4918
Red Hatjboss_enterprise_application_platform:7.4::el8eap7-activemq-artemis, eap7-activemq-artemis-ra, eap7-activemq-artemis-cli and 13 more0:2.16.0-9.redhat_00042.1.el8eapRHSA-2022:4919
Red Hatjboss_enterprise_application_platform:7.4::el8eap7-h2database0:1.4.197-2.redhat_00004.1.el8eapRHSA-2022:4919
15 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

JBoss EAP 7.1 until 7.4 is not affected by default as it comes with Legacy Security enabled out-of-the-box. This only affects application scope range and the methods mentioned, no access to server data.

Red Hat's mitigation

In order to avoid the possibility of information access, review application source code for '@RunAs' and 'run-as-principal' usage. Also, make sure the application is using or not Elytron Security. It's possible to investigate by checking if the commands from '$JBOSS_HOME/docs/examples/enable-elytron.cli' or similar were executed.

ProductPackageStateAdvisory
Red Hat JBoss Enterprise Application Platformorg.wildfly.security/wildfly-elytron:1.15.12.Final-redhat-00001Fixed 2022-06-06RHSA-2022:4922
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-wildfly-0:7.4.5-3.GA_redhat_00001.1.el8eapFixed 2022-06-06RHSA-2022:4919
Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7eap7-wildfly-0:7.4.5-3.GA_redhat_00001.1.el7eapFixed 2022-06-06RHSA-2022:4918
Red Hat Single Sign-On 7wildflyFixed 2022-10-04RHSA-2022:6787
Red Hat Single Sign-On 7.5 for RHEL 7rh-sso7-keycloak-0:15.0.8-1.redhat_00001.1.el7ssoFixed 2022-10-04RHSA-2022:6782
Red Hat Single Sign-On 7.5 for RHEL 8rh-sso7-keycloak-0:15.0.8-1.redhat_00001.1.el8ssoFixed 2022-10-04RHSA-2022:6783
Red Hat Single Sign-On 7.6.1wildflyFixed 2022-11-03RHSA-2022:7417
Red Hat Single Sign-On 7.6 for RHEL 7rh-sso7-keycloak-0:18.0.3-1.redhat_00001.1.el7ssoFixed 2022-11-03RHSA-2022:7409
Red Hat Single Sign-On 7.6 for RHEL 8rh-sso7-keycloak-0:18.0.3-1.redhat_00001.1.el8ssoFixed 2022-11-03RHSA-2022:7410
Red Hat Single Sign-On 7.6 for RHEL 9rh-sso7-0:1-5.el9ssoFixed 2022-11-03RHSA-2022:7411
Red Hat build of Apicurio Registry 2wildflyNot affected
Red Hat build of Debezium 1wildflyNot affected
Red Hat build of QuarkuswildflyNot affected
Red Hat Data Grid 8wildflyNot affected
Red Hat Decision Manager 7wildflyOut of support scope
Red Hat Fuse 7wildflyNot affected
Red Hat Integration Camel K 1wildflyNot affected
Red Hat Integration Camel Quarkus 1wildflyNot affected
Red Hat Integration Data Virtualisation OperatorwildflyNot affected
Red Hat Integration Service RegistrywildflyNot affected
15 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-0866.

References

Check your stackJSON