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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2023-26031

CVE-2023-26031: Apache Hadoop Privilege Escalation Flaw

CVE-2023-26031 is a privilege escalation vulnerability in Apache Hadoop 3.3.1-3.3.4 that allows local users to gain root privileges through malicious library injection. This article covers technical details, detection methods, and patches.

Published: February 4, 2026

CVE-2023-26031 Overview

CVE-2023-26031 is a privilege escalation vulnerability in the Apache Hadoop container-executor binary that affects versions 3.3.1 through 3.3.4 on Linux systems. The vulnerability stems from an insecure relative library resolution path that allows local users to gain root privileges. In YARN clusters accepting work from remote authenticated users, this vulnerability may permit remote privilege escalation to root.

The vulnerability was introduced in Hadoop 3.3.0 when the YARN Secure Containers feature was updated to enable executing user-submitted applications in isolated Linux containers. The native binary HADOOP_HOME/bin/container-executor is used to launch these containers and must be owned by root with the SUID bit set for YARN processes to run containers as specific users submitting jobs.

Critical Impact

Local and potentially remote authenticated users can achieve root-level privilege escalation by exploiting insecure library loading paths in the container-executor SUID binary.

Affected Products

  • Apache Hadoop 3.3.1
  • Apache Hadoop 3.3.2
  • Apache Hadoop 3.3.3
  • Apache Hadoop 3.3.4

Discovery Timeline

  • 2023-11-16 - CVE-2023-26031 published to NVD
  • 2025-02-13 - Last updated in NVD database

Technical Details for CVE-2023-26031

Vulnerability Analysis

This vulnerability is classified as CWE-426 (Untrusted Search Path), a security weakness that occurs when an application searches for critical resources using an externally-supplied search path that can point to resources not under the application's direct control.

The patch YARN-10495 modified the library loading path (RPATH/RUNPATH) of the container-executor binary from $ORIGIN/ to $ORIGIN/:../lib/native/. This change was intended to make the rpath configurable but inadvertently introduced a security vulnerability by allowing library resolution through relative paths.

The container-executor binary loads shared libraries, including libcrypto.so, using this modified search path. Because the binary runs as root (due to the SUID bit), any library loaded during execution also runs with root privileges.

Root Cause

The root cause is the modification of the dynamic linker search path to include relative directory traversal (../lib/native/). When combined with the SUID bit requirement for the container-executor binary, this creates an exploitable condition where:

  1. The container-executor binary must be owned by root with SUID bit set for legitimate YARN secure container functionality
  2. The modified RUNPATH includes ../lib/native/ which resolves relative to the binary's location
  3. A local user with write access to directories in the resolution path can place a malicious shared library (e.g., libcrypto.so) that will be loaded by the SUID root binary

Attack Vector

The attack exploits the network-accessible YARN service but requires authenticated access. An attacker with valid credentials can submit a malicious job to the YARN cluster. If job execution occurs on the physical host rather than within an isolated container, the attacker can:

  1. Identify or create a writable directory that falls within the relative library search path
  2. Plant a malicious libcrypto.so shared library in that location
  3. Trigger execution of the container-executor binary
  4. Achieve code execution as root when the malicious library is loaded

Administrators can check if their installation is vulnerable using the readelf command to inspect the binary's RUNPATH:

bash
# Vulnerable configuration shows relative path
$ readelf -d container-executor | grep 'RUNPATH\|RPATH'
0x000000000000001d (RUNPATH)            Library runpath: [$ORIGIN/:../lib/native/]

# Safe configuration shows only $ORIGIN
$ readelf -d container-executor | grep 'RUNPATH\|RPATH'
0x000000000000001d (RUNPATH)            Library runpath: [$ORIGIN/]

Detection Methods for CVE-2023-26031

Indicators of Compromise

  • Presence of unexpected or recently modified libcrypto.so files in directories relative to the Hadoop binary path
  • Unusual processes spawned by container-executor with root privileges
  • Suspicious shared library files in /opt/hadoop/lib/native/ or adjacent directories
  • Unauthorized modifications to Hadoop installation directories

Detection Strategies

  • Monitor file system changes in Hadoop installation directories, particularly for new .so files
  • Audit container-executor invocations and correlate with expected YARN job submissions
  • Implement file integrity monitoring (FIM) on the Hadoop binary and library directories
  • Review authentication logs for unusual YARN job submissions from unexpected users

Monitoring Recommendations

  • Enable enhanced logging for YARN resource manager and node manager components
  • Configure alerts for privilege escalation attempts detected by endpoint security solutions
  • Monitor for unexpected root-level process execution originating from Hadoop services
  • Track changes to SUID binaries and their associated library paths using system auditing tools

How to Mitigate CVE-2023-26031

Immediate Actions Required

  • Upgrade Apache Hadoop to version 3.3.5 or later, which contains the fix in YARN-11441
  • Verify the container-executor binary RUNPATH using readelf -d container-executor | grep 'RUNPATH\|RPATH'
  • Review and restrict write permissions to directories in the Hadoop installation path
  • Audit YARN cluster access controls and authentication mechanisms

Patch Information

The fix for this vulnerability is implemented in YARN-11441, which reverts the problematic YARN-10495 change. This patch is included in Apache Hadoop version 3.3.5 and later. Organizations should upgrade to the patched version as the primary remediation strategy.

For additional information, refer to the Apache Hadoop CVE List and the Apache Mailing List Discussion.

Workarounds

  • Remove the SUID bit from the container-executor binary if YARN Secure Containers are not required
  • Change ownership of container-executor from root to a less privileged user (disables Secure Containers functionality)
  • Restrict network access to the YARN cluster to trusted internal networks only
  • Implement strict directory permissions to prevent unauthorized write access to library search paths
bash
# Remove SUID bit (disables Secure Containers but mitigates vulnerability)
chmod u-s /opt/hadoop/bin/container-executor

# Change ownership away from root (alternative mitigation)
chown yarn:hadoop /opt/hadoop/bin/container-executor

# Verify safe configuration
ls -laF /opt/hadoop/bin/container-executor
# Expected output (safe): -rwxr-xr-x. 1 yarn hadoop 802968 May 9 20:21 /opt/hadoop/bin/container-executor

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechApache Hadoop

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability16.29%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-426
  • Technical References
  • NetApp Security Advisory NTAP-20240112-0001
  • Vendor Resources
  • Apache Hadoop CVE List

  • Apache JIRA Issue YARN-11441

  • Apache Mailing List Discussion
  • Related CVEs
  • CVE-2021-33036: Apache Hadoop Privilege Escalation Flaw

  • CVE-2025-27821: Apache Hadoop Buffer Overflow Vulnerability

  • CVE-2024-23454: Apache Hadoop Information Disclosure Flaw

  • CVE-2022-25168: Apache Hadoop RCE Vulnerability
Default Legacy - Prefooter | 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