Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-35535

CVE-2026-35535: Sudo Privilege Escalation Vulnerability

CVE-2026-35535 is a privilege escalation flaw in Sudo through version 1.9.17p2 that occurs when privilege drop operations fail before running the mailer. This article covers the technical details, affected versions, security impact, and available mitigation strategies.

Published: April 10, 2026

CVE-2026-35535 Overview

A privilege escalation vulnerability exists in Sudo through version 1.9.17p2 that arises from improper handling of failed privilege drop operations. When Sudo attempts to drop privileges before running the mailer component, failures in setuid, setgid, or setgroups system calls are not treated as fatal errors. This non-fatal error handling can allow an attacker to maintain elevated privileges when they should have been dropped, potentially leading to local privilege escalation.

Critical Impact

Local attackers may exploit this vulnerability to escalate privileges on affected systems running vulnerable versions of Sudo, potentially gaining root access through improper privilege drop handling.

Affected Products

  • Sudo versions through 1.9.17p2 (before commit 3e474c2)
  • Linux distributions using vulnerable Sudo versions (Debian, Ubuntu, and others)
  • Systems relying on Sudo's mailer functionality with privilege separation

Discovery Timeline

  • April 3, 2026 - CVE-2026-35535 published to NVD
  • April 3, 2026 - Last updated in NVD database

Technical Details for CVE-2026-35535

Vulnerability Analysis

This vulnerability is classified under CWE-271 (Privilege Dropping / Lowering Errors), which describes situations where software fails to properly drop privileges when intended. In the context of Sudo, when the mailer subprocess is invoked, the application attempts to reduce its privilege level by calling setuid, setgid, and setgroups functions. However, the implementation prior to commit 3e474c2 did not treat failures of these calls as fatal conditions.

When these privilege-dropping functions fail silently, the subsequent execution continues with elevated privileges rather than the intended reduced privilege level. This represents a significant security boundary violation, as the mailer process may execute with root privileges when it should be running with restricted user-level access.

Root Cause

The root cause stems from insufficient error checking in the privilege drop sequence within Sudo's mailer execution path. The code path that prepares to execute the mailer calls setuid(), setgid(), and setgroups() to transition from the elevated sudo context to a less privileged state. When any of these calls return an error, the code continued execution rather than aborting or returning a fatal error condition.

This design flaw means that under specific conditions where the operating system refuses to perform the privilege transition (such as resource exhaustion, security module intervention, or namespace restrictions), the process maintains its elevated privileges while continuing to execute operations that were designed to run with reduced permissions.

Attack Vector

The attack vector requires local access to the target system. An attacker with the ability to execute commands on a system running a vulnerable Sudo version may be able to manipulate conditions that cause the privilege drop functions to fail. This could involve:

  • Manipulating resource limits (RLIMIT settings) to cause setuid/setgid failures
  • Exploiting process credential handling edge cases
  • Leveraging container or namespace boundaries where privilege operations behave unexpectedly
  • Creating race conditions during the privilege transition phase

The vulnerability exists in the privilege drop mechanism before running the mailer. For the vulnerability to be exploitable, an attacker needs to trigger the mailer execution path in Sudo while ensuring the privilege drop operations fail, resulting in the mailer running with higher privileges than intended.

Detection Methods for CVE-2026-35535

Indicators of Compromise

  • Unexpected processes running with elevated privileges when they should be running as unprivileged users
  • Mailer processes (typically sendmail or configured mail transport agents) executing with root privileges unexpectedly
  • Anomalous sudo execution patterns involving mail-related operations
  • System logs showing privilege-related syscall failures followed by successful command execution

Detection Strategies

  • Monitor for Sudo processes that invoke mailer functionality and correlate with privilege level of child processes
  • Implement auditd rules to track setuid, setgid, and setgroups syscall failures in sudo-related processes
  • Deploy endpoint detection solutions that monitor for privilege escalation attempts via sudo
  • Review system logs for patterns indicating failed privilege drops that did not result in process termination

Monitoring Recommendations

  • Configure audit logging for all Sudo invocations with focus on mail-related flags and options
  • Monitor process hierarchy to detect unexpected privilege levels in sudo child processes
  • Implement file integrity monitoring on Sudo binaries and configuration files
  • Set up alerts for unusual patterns in sendmail or mailer invocations originating from sudo

How to Mitigate CVE-2026-35535

Immediate Actions Required

  • Upgrade Sudo to a version containing commit 3e474c2 or later
  • Review Sudo configuration to determine if mailer functionality is enabled and consider disabling if not required
  • Apply vendor-provided patches from your Linux distribution's security repository
  • Audit systems for any signs of exploitation attempts related to this vulnerability

Patch Information

The vulnerability has been addressed in Sudo through commit 3e474c2, which modifies the privilege drop handling to treat failures in setuid, setgid, and setgroups calls as fatal errors. This ensures that if the privilege transition cannot be completed successfully, the mailer execution is aborted rather than proceeding with elevated privileges.

Distribution-specific patches are being tracked:

  • Debian Bug Report #1130593
  • Ubuntu Bug Report #2143042

Additional technical analysis is available in the Qualys Security Analysis.

Workarounds

  • Disable the mailer functionality in Sudo if not required by setting set mailerpath="" in sudoers configuration
  • Restrict sudo access to trusted users only until patching can be completed
  • Implement additional privilege boundary monitoring using SELinux or AppArmor policies
  • Configure process accounting to detect and alert on unexpected privilege levels
bash
# Disable mailer in sudoers to mitigate until patch is applied
# Add to /etc/sudoers or /etc/sudoers.d/security
Defaults !mailerpath
Defaults !mailto

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechSudo

  • SeverityHIGH

  • CVSS Score7.4

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-271
  • Technical References
  • Debian Bug Report #1130593

  • Ubuntu Bug Report #2143042

  • GitHub Sudo Commit

  • Qualys Security Analysis
  • Related CVEs
  • CVE-2021-3156: Sudo Privilege Escalation Vulnerability

  • CVE-2025-32463: Sudo Privilege Escalation Vulnerability

  • CVE-2025-32462: Sudo Privilege Escalation Vulnerability

  • CVE-2023-22809: Sudo Privilege Escalation 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