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-2026-35368

CVE-2026-35368: uutils coreutils Privilege Escalation

CVE-2026-35368 is a privilege escalation vulnerability in uutils coreutils chroot utility affecting the --userspec option. Attackers can inject malicious code to gain root access. This article covers technical details, impact, and mitigation.

Published: April 23, 2026

CVE-2026-35368 Overview

A privilege escalation vulnerability exists in the chroot utility of uutils coreutils when using the --userspec option. The vulnerability stems from improper sequencing of operations where the utility resolves user specifications via getpwnam() after entering the chroot environment but before dropping root privileges. On glibc-based systems, this behavior can trigger the Name Service Switch (NSS) to load shared libraries (e.g., libnss_*.so.2) from the new root directory. If the NEWROOT directory is writable by an attacker, they can inject a malicious NSS module to execute arbitrary code as root, facilitating a full container escape or privilege escalation.

Critical Impact

Attackers with write access to the chroot NEWROOT directory can achieve full root privilege escalation or container escape by injecting malicious NSS shared libraries that execute arbitrary code before privileges are dropped.

Affected Products

  • uutils coreutils (versions using the vulnerable chroot implementation with --userspec option)
  • glibc-based Linux systems utilizing NSS for name resolution

Discovery Timeline

  • April 22, 2026 - CVE-2026-35368 published to NVD
  • April 22, 2026 - Last updated in NVD database

Technical Details for CVE-2026-35368

Vulnerability Analysis

This vulnerability is classified as CWE-426 (Untrusted Search Path), which occurs when an application searches for critical resources using an externally-supplied search path that can point to resources controlled by malicious actors.

The core issue lies in the timing and sequence of privilege-sensitive operations within the chroot utility. When the --userspec option is provided, the utility must resolve the specified user and group information. However, this resolution occurs after the process has already changed its root directory to NEWROOT but before it has relinquished its root privileges.

On glibc-based systems, the getpwnam() function call initiates NSS lookups, which dynamically loads shared libraries from paths relative to the current root directory. Since the chroot has already been executed, the NSS subsystem searches for modules like libnss_files.so.2, libnss_compat.so.2, or other configured NSS backends within the attacker-controlled NEWROOT.

Root Cause

The vulnerability originates from a Time-of-Check Time-of-Use (TOCTOU) design flaw combined with an untrusted search path issue. The chroot utility enters the new root environment before completing all privileged operations that require loading external resources. The glibc NSS mechanism, designed to be modular and configurable, becomes a vector for code execution when the library search path falls within attacker-controlled territory.

Specifically, the problematic sequence is:

  1. The chroot() system call changes the root directory to NEWROOT
  2. The utility calls getpwnam() to resolve the user specification
  3. NSS loads libnss_*.so.2 modules from the new root's library paths
  4. Only then does the utility drop privileges via setuid()/setgid()

This ordering allows malicious code in injected NSS modules to execute with full root privileges.

Attack Vector

This is a local attack vector requiring the attacker to have write access to the NEWROOT directory that will be used with the chroot command. The attack unfolds as follows:

  1. The attacker identifies or creates a directory that will be used as NEWROOT for a privileged chroot invocation
  2. The attacker creates the appropriate library directory structure (typically /lib/ or /lib64/) within NEWROOT
  3. A malicious shared library is placed in this path, named to match an NSS module (e.g., libnss_files.so.2)
  4. When a privileged user or automated process executes chroot --userspec=<user>:<group> NEWROOT ..., the malicious library is loaded and executed with root privileges

The attack is particularly dangerous in containerized environments where the NEWROOT may be constructed from untrusted sources or where build processes operate within chroot environments.

For technical details and the ongoing discussion, see the GitHub Issue Discussion.

Detection Methods for CVE-2026-35368

Indicators of Compromise

  • Unexpected or modified NSS shared libraries (libnss_*.so.2) appearing in chroot target directories
  • Suspicious shared library files in non-standard locations within container or chroot environments
  • Evidence of privilege escalation following chroot operations in system logs
  • Anomalous process execution chains originating from chroot invocations

Detection Strategies

  • Monitor for creation or modification of libnss_*.so.2 files in directories used as chroot targets
  • Implement file integrity monitoring (FIM) on directories commonly used as chroot NEWROOT paths
  • Audit system calls to detect chroot() followed by suspicious library loads using tools like auditd or eBPF-based monitoring
  • Deploy runtime protection that detects library injection attempts during privileged operations

Monitoring Recommendations

  • Enable detailed logging for all chroot command executions with user context
  • Configure security tooling to alert on shared library creation in temporary or build directories
  • Implement container security scanning to detect suspicious library configurations in container images
  • Monitor for unexpected dlopen() calls within processes that have recently executed chroot()

How to Mitigate CVE-2026-35368

Immediate Actions Required

  • Audit all systems using uutils coreutils chroot with the --userspec option
  • Ensure NEWROOT directories are not writable by unprivileged users before chroot operations
  • Consider switching to GNU coreutils chroot if a patched version of uutils coreutils is not available
  • Review and restrict permissions on container build environments and chroot target directories

Patch Information

Users should monitor the uutils coreutils GitHub repository for updates regarding this vulnerability. A proper fix would involve resolving user specifications before entering the chroot environment or implementing safeguards to prevent NSS module loading from untrusted paths.

Workarounds

  • Avoid using the --userspec option with chroot when the NEWROOT is potentially attacker-controlled
  • Pre-resolve user and group IDs and use numeric UID/GID specifications instead of names when possible
  • Ensure NEWROOT directories and their library subdirectories are owned by root with restrictive permissions (e.g., chmod 755)
  • Use mount namespaces or other isolation mechanisms to prevent library injection attacks
bash
# Configuration example - Restrict NEWROOT directory permissions before chroot
# Ensure the target directory is owned by root and not writable by others
chown -R root:root /path/to/newroot
chmod -R go-w /path/to/newroot

# Alternatively, use numeric UID:GID instead of usernames to avoid getpwnam()
chroot /path/to/newroot /bin/sh -c "exec setpriv --reuid=1000 --regid=1000 --init-groups /application"

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechUutils Coreutils

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-426
  • Technical References
  • GitHub Issue Discussion
  • Related CVEs
  • CVE-2026-35372: uutils coreutils ln Privilege Escalation

  • CVE-2026-35359: uutils coreutils Privilege Escalation

  • CVE-2026-35340: uutils coreutils Privilege Escalation

  • CVE-2026-35341: uutils coreutils Privilege Escalation
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