Incorrect authorization in Wildfly
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Partial Red Hat: 10 fixed, 7 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-863.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | Wildfly | JBoss EAP from 7.1.0 and all versions of WildFly 11+ when Elytron is enabled. | — | No fix listed | CNA |
- Wildfly Vendor— Affected JBoss EAP from 7.1.0 and all versions of WildFly 11+ when Elytron is enabled. Fixed in — No fix listed CNA
CPE configurations NVD · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:redhat:jboss_enterprise_application_platform:*:*:*:*:*:*:*:* | 7.1.0 | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:openstack_platform:13.0:*:*:*:*:*:*:* | 13.0 | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:wildfly:*:*:*:*:*:*:*:* | 11.0.0 to before 26.1.1 | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:wildfly:27.0.0:alpha1:*:*:*:*:*:* | 27.0.0 alpha1 | Vulnerable | Red Hat |
- cpe:2.3:a:redhat:jboss_enterprise_application_platform:*:*:*:*:*:*:*:* Versions 7.1.0 Vulnerable ·Red Hat
- cpe:2.3:a:redhat:openstack_platform:13.0:*:*:*:*:*:*:* Versions 13.0 Vulnerable ·Red Hat
- cpe:2.3:a:redhat:wildfly:*:*:*:*:*:*:*:* Versions 11.0.0 to before 26.1.1 Vulnerable ·Red Hat
- cpe:2.3:a:redhat:wildfly:27.0.0:alpha1:*:*:*:*:*:* Versions 27.0.0 alpha1 Vulnerable ·Red Hat
Remediation
Red Hat 10 advisories
- RHSA-2022:7417 Released 2022-11-03 · Red Hat rating ModerateRed Hat Single Sign-On 7.6.1 security update
- Red Hat Single Sign-On 7.6.1
- RHSA-2022:7411 Released 2022-11-03 · Red Hat rating ModerateRed Hat Single Sign-On 7.6.1 security update on RHEL 9
- Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7-1-5.el9sso, rh-sso7-javapackages-filesystem-6.0.0-7.el9sso, rh-sso7-javapackages-tools-6.0.0-7.el9sso +4
- RHSA-2022:7410 Released 2022-11-03 · Red Hat rating ModerateRed Hat Single Sign-On 7.6.1 security update on RHEL 8
- Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak-18.0.3-1.redhat_00001.1.el8sso, rh-sso7-keycloak-server-18.0.3-1.redhat_00001.1.el8sso
Show 7 more Red Hat advisories
- RHSA-2022:7409 Released 2022-11-03 · Red Hat rating ModerateRed Hat Single Sign-On 7.6.1 security update on RHEL 7
- Red Hat Single Sign-On 7.6 for RHEL 7 Server rh-sso7-keycloak-18.0.3-1.redhat_00001.1.el7sso, rh-sso7-keycloak-server-18.0.3-1.redhat_00001.1.el7sso
- RHSA-2022:6782 Released 2022-10-04 · Red Hat rating ModerateRed Hat Single Sign-On 7.5.3 security update on RHEL 7
- Red Hat Single Sign-On 7.5 for RHEL 7 Server rh-sso7-keycloak-15.0.8-1.redhat_00001.1.el7sso, rh-sso7-keycloak-server-15.0.8-1.redhat_00001.1.el7sso
- RHSA-2022:6787 Released 2022-10-04 · Red Hat rating ModerateRed Hat Single Sign-On 7.5.3 security update
- Red Hat Single Sign-On 7
- RHSA-2022:6783 Released 2022-10-04 · Red Hat rating ModerateRed Hat Single Sign-On 7.5.3 security update on RHEL 8
- Red Hat Single Sign-On 7.5 for RHEL 8 rh-sso7-keycloak-15.0.8-1.redhat_00001.1.el8sso, rh-sso7-keycloak-server-15.0.8-1.redhat_00001.1.el8sso
- RHSA-2022:4919 Released 2022-06-06 · Red Hat rating ModerateRed Hat JBoss Enterprise Application Platform 7.4.5 security update on RHEL 8
- Red Hat JBoss EAP 7.4 for RHEL 8 eap7-activemq-artemis-2.16.0-9.redhat_00042.1.el8eap, eap7-activemq-artemis-cli-2.16.0-9.redhat_00042.1.el8eap, eap7-activemq-artemis-commons-2.16.0-9.redhat_00042.1.el8eap +47
- RHSA-2022:4918 Released 2022-06-06 · Red Hat rating ModerateRed Hat JBoss Enterprise Application Platform 7.4.5 security update on RHEL 7
- Red Hat JBoss EAP 7.4 for RHEL 7 Server eap7-activemq-artemis-2.16.0-9.redhat_00042.1.el7eap, eap7-activemq-artemis-cli-2.16.0-9.redhat_00042.1.el7eap, eap7-activemq-artemis-commons-2.16.0-9.redhat_00042.1.el7eap +47
- RHSA-2022:4922 Released 2022-06-06 · Red Hat rating ModerateRed Hat JBoss Enterprise Application Platform 7.4.5 security update
- Red Hat JBoss Enterprise Application Platform com.fasterxml.jackson.core.jackson-databind-2.12.6.1-redhat-00003.jar, com.h2database.h2-1.4.197.redhat-00004.jar, io.netty.netty-codec-4.1.72.Final-redhat-00001.jar +8
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Decision Manager 7 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Data Grid 7 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Enterprise Application Platform 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Fuse 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Fuse Service Works 6 | Affected | No fix planned: Out of support scope |
| Red Hat OpenStack Platform 13 (Queens) | Affected | No fix planned: Out of support scope |
| Red Hat Process Automation 7 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss EAP 7.4 for RHEL 7 Server | Fixed | RHSA-2022:4918 |
| Red Hat JBoss EAP 7.4 for RHEL 8 | Fixed | RHSA-2022:4919 |
| Red Hat JBoss Enterprise Application Platform | Fixed | RHSA-2022:4922 |
| Red Hat Single Sign-On 7 | Fixed | RHSA-2022:6787 |
| Red Hat Single Sign-On 7.5 for RHEL 7 Server | Fixed | RHSA-2022:6782 |
| Red Hat Single Sign-On 7.5 for RHEL 8 | Fixed | RHSA-2022:6783 |
| Red Hat Single Sign-On 7.6 for RHEL 7 Server | Fixed | RHSA-2022:7409 |
| Red Hat Single Sign-On 7.6 for RHEL 8 | Fixed | RHSA-2022:7410 |
| Red Hat Single Sign-On 7.6 for RHEL 9 | Fixed | RHSA-2022:7411 |
| Red Hat Single Sign-On 7.6.1 | Fixed | RHSA-2022:7417 |
Not affected: 14 products
- Red Hat Data Grid 8
- Red Hat Fuse 7
- Red Hat Integration Camel K 1
- Red Hat Integration Camel Quarkus 1
- Red Hat Integration Data Virtualisation Operator
- Red Hat Integration Service Registry
- Red Hat JBoss EAP 7.4 for RHEL 7 Server
- Red Hat JBoss EAP 7.4 for RHEL 8
- Red Hat JBoss Enterprise Application Platform
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat build of Apicurio Registry 2
- Red Hat build of Debezium 1
- Red Hat build of Quarkus
- streams for Apache Kafka
Timeline
- 2026-10-02 Threatist record created from CVE-2022-0866
- 2026-10-03 Alias added: GHSA-pjxg-p9c7-7c3v
References
More Red Hat Jboss Enterprise Application Platform vulnerabilities
- TI-2017-08941 Deserialization of untrusted data in Red Hat jbossas KEVCVSS 3.1CRITICAL 9.8
- TI-2010-01790 JBoss Seam 2 (jboss-seam2), as used in JBoss Enterprise Application Platform 4.3.0 for… KEVCVSS 3.1HIGH 8.8
- TI-2017-09342 Unrestricted file upload in Apache Tomcat KEVCVSS 3.1HIGH 8.1
- TI-2023-23979 The HTTP/2 protocol allows a denial of service (server resource consumption) because… KEVCVSS 3.1HIGH 7.5
- TI-2010-01383 The Web Console (aka web-console) in JBossAs in Red Hat JBoss Enterprise Application… KEVCVSS 3.1HIGH 7.5
- TI-2017-09354 XML external entity injection in Apache Solr before 7.1 with Apache Lucene before 7.1 CVSS 3.1CRITICAL 9.8
Sources
- CVE-2022-0866 · CVE Program
- CVE-2022-0866 · NVD
- FIRST EPSS
- GHSA-pjxg-p9c7-7c3v · GitHub Advisory Database · CC BY 4.0
- CVE-2022-0866 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences