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

CVE-2026-40032: UAC Command Injection RCE Vulnerability

CVE-2026-40032 is a command injection vulnerability in UAC (Unix-like Artifacts Collector) that enables remote code execution through unsanitized shell metacharacters. This article covers technical details, impact, and mitigations.

Published: April 10, 2026

CVE-2026-40032 Overview

CVE-2026-40032 is a command injection vulnerability affecting UAC (Unix-like Artifacts Collector) before version 3.3.0-rc1. The vulnerability exists in the placeholder substitution and command execution pipeline where the _run_command() function passes constructed command strings directly to eval without proper sanitization. Attackers can inject shell metacharacters or command substitutions through attacker-controlled inputs including %line% values from foreach iterators and %user% / %user_home% values derived from system files to achieve arbitrary command execution with the privileges of the UAC process.

Critical Impact

Successful exploitation allows attackers to execute arbitrary commands with the same privileges as the UAC process, potentially leading to full system compromise during forensic artifact collection operations.

Affected Products

  • UAC (Unix-like Artifacts Collector) versions prior to 3.3.0-rc1

Discovery Timeline

  • 2026-04-08 - CVE-2026-40032 published to NVD
  • 2026-04-08 - Last updated in NVD database

Technical Details for CVE-2026-40032

Vulnerability Analysis

This vulnerability is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command), commonly known as OS Command Injection. The flaw resides in the placeholder substitution mechanism within UAC's command collector functionality.

The vulnerable code path involves the _run_command() function which constructs shell commands by substituting placeholders such as %line%, %user%, and %user_home% with runtime values. These values can originate from system files or iterator outputs that may contain attacker-controlled content. When these values are passed to eval without proper sanitization, shell metacharacters and command substitutions within the input are interpreted and executed.

The attack requires local access and some user interaction, as the attacker must be able to influence the content of system files that UAC reads during artifact collection, or manipulate data that flows through the foreach iterators.

Root Cause

The root cause is the use of simple string substitution via sed to replace placeholders directly into command strings that are subsequently passed to eval. The original implementation used constructs like:

bash
__cc_new_command=`echo "${__cc_command}" | sed -e "s|%line%|${__cc_line}|g"`

This approach fails to escape special shell characters in the replacement value (${__cc_line}), allowing malicious input containing characters like backticks, $(), semicolons, or pipes to be interpreted as shell commands during the eval execution.

Attack Vector

The attack leverages locally accessible input vectors including system files that define user accounts and home directories, or data processed through foreach iterators. An attacker with the ability to create or modify user account information, home directory paths, or other data sources consumed by UAC's collection profiles can inject malicious payloads.

For example, if a system user's home directory path or username contains embedded command substitution syntax like `malicious_command` or $(malicious_command), this payload would be executed when UAC processes that entry during artifact collection.

The following patch demonstrates how the vulnerability was addressed by replacing the unsafe substitution with properly escaped placeholder handling:

bash
       | while IFS= read __cc_line && [ -n "${__cc_line}" ]; do
 
           # replace %line% by __cc_line value
-          __cc_new_command=`echo "${__cc_command}" | sed -e "s|%line%|${__cc_line}|g"`
-          __cc_new_output_directory=`echo "${__cc_output_directory}" | sed -e "s|%line%|${__cc_line}|g"`
+          __cc_new_command=`_replace_eval_safe_placeholder "${__cc_command}" "line" "${__cc_line}"`
+          __cc_new_output_directory=`_replace_plain_placeholder "${__cc_output_directory}" "line" "${__cc_line}`
           
           __cc_new_output_directory=`_sanitize_output_directory "${__cc_new_output_directory}"`

Source: GitHub Commit Fix

The fix introduces dedicated functions _replace_eval_safe_placeholder and _replace_plain_placeholder that properly escape shell metacharacters before substitution, preventing command injection.

Detection Methods for CVE-2026-40032

Indicators of Compromise

  • Unusual process spawning patterns during UAC execution, particularly unexpected child processes
  • System files containing suspicious shell metacharacters in user account fields, home directory paths, or other UAC-consumed data sources
  • Anomalous command executions occurring during forensic collection timeframes
  • Unexpected network connections or file modifications during UAC artifact collection runs

Detection Strategies

  • Monitor process execution chains for unexpected commands spawned as children of UAC processes
  • Audit system files (e.g., /etc/passwd, user directories) for entries containing shell metacharacters or command substitution syntax
  • Implement file integrity monitoring on system configuration files that UAC consumes during collection
  • Review UAC execution logs for signs of command injection attempts or unexpected command output

Monitoring Recommendations

  • Enable comprehensive process auditing on systems where UAC is deployed for forensic collection
  • Configure SentinelOne agents to monitor for suspicious process trees originating from shell scripts during known forensic collection windows
  • Establish baseline behavior for UAC executions and alert on deviations from expected command patterns
  • Monitor for privilege escalation attempts coinciding with UAC execution times

How to Mitigate CVE-2026-40032

Immediate Actions Required

  • Upgrade UAC to version 3.3.0-rc1 or later immediately
  • Review any systems where UAC has been executed for signs of compromise
  • Audit system files for potentially malicious entries containing shell metacharacters before running UAC on untrusted systems
  • Consider running UAC in an isolated environment when collecting artifacts from potentially compromised systems

Patch Information

The vulnerability has been addressed in UAC version 3.3.0-rc1 through a series of commits that introduce proper input sanitization for placeholder substitution. The fix replaces the unsafe direct string substitution with dedicated escaping functions:

  • GitHub Commit Update - Introduces _replace_placeholder_shell_fragment and _replace_placeholder_plain_text functions
  • GitHub Commit Fix - Initial implementation of _replace_eval_safe_placeholder
  • GitHub Commit Change - Further hardening of the escape mechanism

Additional technical details are available in the GitHub Issue Discussion and GitHub Pull Request. The VulnCheck Advisory provides comprehensive vulnerability details.

Workarounds

  • If immediate upgrade is not possible, run UAC only on trusted systems where user account data and system files have been verified as clean
  • Execute UAC in a containerized or sandboxed environment to limit the impact of potential command injection
  • Pre-validate any system files that UAC will consume during artifact collection, sanitizing entries containing shell metacharacters
  • Implement strict access controls to prevent unauthorized modification of system files that serve as input to UAC
bash
# Verify UAC version before use
./uac --version

# Update to patched version
git clone https://github.com/tclahr/uac.git
cd uac
git checkout v3.3.0-rc1

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechUac

  • SeverityHIGH

  • CVSS Score8.5

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Fix

  • GitHub Commit Change

  • GitHub Issue Discussion

  • GitHub Pull Request

  • Mobasi Sentinel Overview

  • VulnCheck Advisory on UAC
  • Latest CVEs
  • CVE-2026-43328: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-43329: Linux Kernel Netfilter DoS Vulnerability

  • CVE-2026-43330: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-43331: Linux Kernel DOS Vulnerability
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