The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-0866

CVE-2022-0866: JBoss EAP Privilege Escalation Vulnerability

CVE-2022-0866 is a privilege escalation flaw in Red Hat JBoss Enterprise Application Platform caused by a concurrency issue in RunAs principal handling. This article covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-0866 Overview

CVE-2022-0866 is a race condition vulnerability affecting JBoss Enterprise Application Platform (EAP) and WildFly application servers. The vulnerability exists in the Enterprise JavaBeans (EJB) component when configured with a RunAs principal and Elytron security is enabled. Due to improper handling of concurrent requests, an attacker could potentially access resources with incorrect caller principal information, leading to unauthorized access or information disclosure.

Critical Impact

In concurrent environments where multiple users invoke EJBs configured with RunAs principals, the wrong caller principal may be returned, potentially allowing unauthorized access to sensitive resources or incorrect role-based authorization decisions.

Affected Products

  • Red Hat JBoss Enterprise Application Platform 7.1.0 and later versions
  • Red Hat WildFly 11+ when Elytron is enabled
  • Red Hat OpenStack Platform 13.0

Discovery Timeline

  • 2022-05-10 - CVE-2022-0866 published to NVD
  • 2025-11-06 - Last updated in NVD database

Technical Details for CVE-2022-0866

Vulnerability Analysis

This vulnerability is classified as CWE-863 (Incorrect Authorization) and represents a race condition in the EJB security context handling. The flaw resides in the org.jboss.as.ejb3.component.EJBComponent class, specifically in how the incomingRunAsIdentity field manages security identities during concurrent EJB invocations.

The vulnerability enables attackers to potentially bypass authorization controls in multi-threaded environments where EJBs are configured with RunAs principals. When multiple users simultaneously invoke an affected EJB, the system may return incorrect caller principal information, leading to authorization decisions being made based on the wrong user identity.

Root Cause

The root cause stems from a thread-safety issue in the EJBComponent#incomingRunAsIdentity field. This field is used by the org.jboss.as.ejb3.security.RunAsPrincipalInterceptor to track the current identity before switching to a new identity created using the RunAs principal. Because incomingRunAsIdentity is stored as a simple SecurityIdentity object without proper synchronization, concurrent access can result in one thread reading another thread's identity information.

The methods EJBComponent#getCallerPrincipal and EJBComponent#isCallerInRole both rely on this field, meaning incorrect identity information can affect both principal retrieval and role membership checks.

Attack Vector

The attack vector is network-based and requires no user interaction or prior authentication to trigger. An attacker can exploit this vulnerability by:

  1. Identifying an EJB endpoint configured with a RunAs principal
  2. Generating a high volume of concurrent requests to the target EJB
  3. Exploiting the race condition to have their request processed with another user's principal
  4. Accessing resources or performing actions based on the incorrectly assigned identity

The vulnerability manifests in the EJBComponent class where the incomingRunAsIdentity field lacks proper thread-safe handling during concurrent EJB invocations. When multiple threads access this field simultaneously, the RunAs principal interceptor may read or write stale identity information, causing getCallerPrincipal() to return an incorrect user identity. For detailed technical analysis, refer to the Red Hat Bug Report #2060929.

Detection Methods for CVE-2022-0866

Indicators of Compromise

  • Unexpected access log entries showing users accessing resources they should not have permission to access
  • Audit logs revealing authorization decisions made for incorrect principals
  • Application logs containing inconsistent caller principal information during high-concurrency periods
  • User reports of seeing another user's data or permissions

Detection Strategies

  • Monitor EJB invocation logs for anomalies in caller principal assignments during high-load scenarios
  • Implement application-level logging to track getCallerPrincipal() and isCallerInRole() results
  • Deploy SentinelOne Singularity to detect unusual application behavior patterns
  • Review access control audit trails for authorization decisions that don't match expected user permissions

Monitoring Recommendations

  • Enable detailed EJB security logging in JBoss EAP and WildFly configurations
  • Implement real-time monitoring of concurrent EJB invocation patterns
  • Configure alerts for unusual spikes in EJB component activity
  • Use application performance monitoring (APM) tools to track thread contention in EJB components

How to Mitigate CVE-2022-0866

Immediate Actions Required

  • Review all EJB configurations to identify components using RunAs principals with Elytron security
  • Assess whether affected applications operate in high-concurrency environments
  • Implement additional application-level authorization checks as a defense-in-depth measure
  • Consider temporarily disabling RunAs principal configurations on critical EJBs until patched

Patch Information

Red Hat has acknowledged this vulnerability and tracked it under Bug #2060929. Organizations should apply the latest security updates for JBoss EAP and WildFly from Red Hat's official channels. Check the Red Hat Customer Portal for specific patch versions addressing this CVE for your installed product version.

Workarounds

  • Avoid using RunAs principal configurations in EJBs that handle sensitive operations under high concurrency
  • Implement additional authorization validation at the business logic layer that does not rely solely on getCallerPrincipal()
  • Consider using alternative security mechanisms that don't depend on the affected incomingRunAsIdentity field
  • Reduce concurrent access to affected EJBs through load balancing or request throttling until patches can be applied
bash
# Review EJB configurations for RunAs principals in standalone.xml or domain.xml
grep -r "run-as-principal" $JBOSS_HOME/standalone/configuration/
grep -r "RunAs" $JBOSS_HOME/standalone/deployments/*.ear

# Check if Elytron security subsystem is enabled
grep -A 5 "elytron" $JBOSS_HOME/standalone/configuration/standalone.xml

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechRedhat Jboss Enterprise Application Platform

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.27%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-863
  • Vendor Resources
  • Red Hat Bug Report #2060929
  • Related CVEs
  • CVE-2025-23367: JBoss EAP Privilege Escalation Flaw

  • CVE-2023-5379: Red Hat JBoss EAP DoS Vulnerability

  • CVE-2021-3859: Red Hat JBoss EAP DoS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English