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-35340

CVE-2026-35340: uutils coreutils Privilege Escalation

CVE-2026-35340 is a privilege escalation flaw in uutils coreutils chown and chgrp that causes incorrect exit codes during recursive operations, potentially leading to security misconfigurations in scripts.

Published: April 23, 2026

CVE-2026-35340 Overview

A flaw in the ChownExecutor used by uutils coreutils chown and chgrp causes the utilities to return an incorrect exit code during recursive operations. The final exit code is determined only by the last file processed. If the last operation succeeds, the command returns 0 even if earlier ownership or group changes failed due to permission errors. This can lead to security misconfigurations where administrative scripts incorrectly assume that ownership has been successfully transferred across a directory tree.

Critical Impact

Administrative scripts relying on exit codes may silently fail to detect permission errors during bulk ownership changes, leading to security misconfigurations and files remaining with incorrect ownership permissions.

Affected Products

  • uutils coreutils (versions prior to 0.6.0)
  • Systems using uutils coreutils chown utility
  • Systems using uutils coreutils chgrp utility

Discovery Timeline

  • 2026-04-22 - CVE CVE-2026-35340 published to NVD
  • 2026-04-22 - Last updated in NVD database

Technical Details for CVE-2026-35340

Vulnerability Analysis

This vulnerability (CWE-253: Incorrect Check of Function Return Value) affects the ChownExecutor component within uutils coreutils. The core issue lies in how the executor handles exit codes during recursive directory traversal operations. When performing bulk ownership changes across a directory tree, the implementation incorrectly determines the final exit status based solely on the outcome of the last file operation processed, rather than aggregating the results of all operations.

This behavior creates a significant blind spot for automated processes and administrative scripts that depend on exit codes to verify successful execution. In a typical deployment scenario, if the recursive operation encounters permission errors on several files but the final file in the traversal succeeds, the command returns exit code 0 (success), masking all previous failures.

Root Cause

The root cause stems from improper handling of cumulative exit status within the ChownExecutor. Rather than maintaining a running error state that captures any failures throughout the recursive operation, the implementation overwrites the exit code with each file operation's result. This design flaw means the exit code reflects only the last operation's outcome, violating the expected Unix convention where non-zero exit codes indicate any failure during execution.

Attack Vector

This vulnerability requires local access to exploit. An attacker with limited privileges could exploit this behavior in environments where automated scripts perform ownership changes based on exit code verification:

  1. Script Manipulation: An attacker could arrange file system contents so that the last file in a recursive traversal is one they control or can successfully modify, while earlier files with sensitive content remain unchanged due to permission errors.

  2. Security Automation Bypass: Compliance scripts that verify ownership changes succeed based on exit codes would incorrectly report success, leaving files with improper ownership.

  3. Privilege Boundary Confusion: In multi-tenant environments, this could result in files remaining accessible to unintended users when ownership transfer scripts silently fail.

The vulnerability manifests in the ChownExecutor's recursive operation handling. When processing a directory tree, the exit code tracking only retains the result of the final file operation rather than aggregating failures. See the GitHub Pull Request for Coreutils for technical implementation details.

Detection Methods for CVE-2026-35340

Indicators of Compromise

  • Administrative scripts reporting successful ownership changes when files still have incorrect permissions
  • Log entries showing permission denied errors during chown or chgrp operations while script exit codes indicate success
  • Files within recursively processed directories retaining original ownership despite script completion
  • Discrepancies between expected and actual file ownership in directories processed by uutils coreutils

Detection Strategies

  • Audit scripts that rely on chown or chgrp exit codes for success verification
  • Implement post-execution ownership verification using find commands with -user or -group predicates
  • Compare expected ownership states against actual file system states after bulk operations
  • Monitor for uutils coreutils versions prior to 0.6.0 in system inventories

Monitoring Recommendations

  • Implement file integrity monitoring to detect ownership mismatches after administrative operations
  • Add secondary verification steps in deployment scripts that explicitly check file ownership
  • Log and alert on permission denied errors during recursive ownership operations regardless of exit code
  • Review automation pipelines that perform bulk ownership changes for proper error handling

How to Mitigate CVE-2026-35340

Immediate Actions Required

  • Upgrade uutils coreutils to version 0.6.0 or later
  • Audit existing scripts that use recursive chown or chgrp operations for proper error handling
  • Implement secondary verification mechanisms that do not rely solely on exit codes
  • Consider temporarily using GNU coreutils for critical ownership operations until upgrade is complete

Patch Information

The vulnerability has been addressed in uutils coreutils version 0.6.0. The fix ensures that the exit code properly reflects any failures encountered during recursive operations. For detailed patch information, see the GitHub Coreutils Release 0.6.0. The related pull request containing the fix is available at GitHub Pull Request for Coreutils.

Workarounds

  • Add explicit ownership verification after recursive operations using commands like find /path -not -user expected_user
  • Capture and parse stderr output for permission errors rather than relying on exit codes
  • Implement wrapper scripts that track failures during recursive operations independently
  • Use alternative coreutils implementations (such as GNU coreutils) for critical security operations until patching is complete
bash
# Workaround: Verify ownership after recursive chown
chown -R user:group /target/directory
# Verify all files have correct ownership
if find /target/directory -not -user user -o -not -group group | grep -q .; then
    echo "ERROR: Some files were not changed successfully"
    exit 1
fi

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

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-253
  • Technical References
  • GitHub Pull Request for Coreutils

  • GitHub Coreutils Release 0.6.0
  • Related CVEs
  • CVE-2026-35372: uutils coreutils ln Privilege Escalation

  • CVE-2026-35368: uutils coreutils Privilege Escalation

  • CVE-2026-35359: uutils coreutils Privilege Escalation

  • CVE-2026-35341: uutils coreutils Privilege Escalation
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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