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-2023-28486

CVE-2023-28486: Sudo Information Disclosure Vulnerability

CVE-2023-28486 is an information disclosure vulnerability in Sudo that fails to escape control characters in log messages. This post covers the technical details, affected versions, impact, and mitigation.

Published: February 11, 2026

CVE-2023-28486 Overview

CVE-2023-28486 is an Improper Encoding or Escaping of Output vulnerability (CWE-116) affecting Sudo versions prior to 1.9.13. The vulnerability exists because Sudo does not properly escape control characters in log messages, potentially allowing attackers to inject malicious content into system logs or manipulate log output for obfuscation purposes.

Critical Impact

Attackers can inject control characters into sudo log messages, enabling log injection attacks that could corrupt log integrity, hide malicious activity, or potentially exploit log processing tools through terminal escape sequences.

Affected Products

  • Sudo Project Sudo (versions before 1.9.13)
  • NetApp Active IQ Unified Manager for VMware vSphere

Discovery Timeline

  • 2023-03-16 - CVE-2023-28486 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-28486

Vulnerability Analysis

This vulnerability stems from insufficient output encoding in Sudo's logging functionality. When Sudo logs command execution, it writes various details including the username, TTY, working directory, and executed commands to either syslog or a local log file. Prior to version 1.9.13, these log entries did not properly escape control characters, meaning any control characters present in logged data would be written verbatim.

The lack of proper encoding creates multiple security concerns. Terminal escape sequences embedded in log data could manipulate terminal output when administrators review logs, potentially hiding malicious entries or displaying misleading information. Additionally, log processing tools that parse sudo logs might be vulnerable to injection attacks if they interpret unescaped control characters.

Root Cause

The root cause is the absence of proper output encoding when writing to log destinations. Sudo versions before 1.9.13 failed to sanitize control characters (such as carriage returns #015, horizontal tabs #011, and other non-printable characters) before writing them to syslog or local log files. This allowed arbitrary control sequences to be preserved in log output, violating the principle of proper output encoding (CWE-116).

Attack Vector

The attack vector is network-accessible and requires no authentication or user interaction. An attacker who can influence data that gets logged by sudo (such as command arguments, usernames, or paths) could inject control characters into these fields. When these control characters are written to logs without escaping, they can:

  1. Corrupt log file integrity by injecting carriage returns that overwrite previous log lines
  2. Execute terminal escape sequences when logs are viewed in a terminal
  3. Potentially exploit vulnerabilities in log parsing tools
  4. Obfuscate malicious activity by manipulating how log entries appear

The fix implemented in Sudo 1.9.13 formats control characters in octal notation with a leading # character. For example, a horizontal tab becomes #011 and a carriage return becomes #015. Additionally, space characters in command paths are stored as #040, and command line arguments containing spaces are enclosed in single quotes for disambiguation.

text
 syslog(3),
 to a local log file, or both.
 The log format is almost identical in both cases.
+Any control characters present in the log data are formatted in octal
+with a leading
+\(oq#\(cq
+character.
+For example, a horizontal tab is stored as
+\(oq#011\(cq
+and an embedded carriage return is stored as
+\(oq#015\(cq.
+In addition, space characters in the command path are stored as
+\(oq#040\(cq.
+Command line arguments that contain spaces are enclosed in single quotes
+('').
+This makes it possible to distinguish multiple command line arguments
+from a single argument that contains spaces.
+Literal single quotes and backslash characters
+(\(oq\e\(cq)
+in command line arguments are escaped with a backslash.
 .SS "Accepted command log entries"
 Commands that sudo runs are logged using the following format (split
 into multiple lines for readability):
 .nf
 .sp
 .RS 4n
-date hostname progname: username : TTY=ttyname ; PWD=cwd ; \e
-    USER=runasuser ; GROUP=runasgroup ; TSID=logid ; \e
+date hostname progname: username : TTY=ttyname ; CHROOT=chroot ; \e
+    PWD=cwd ; USER=runasuser ; GROUP=runasgroup ; TSID=logid ; \e

Source: GitHub Commit 334daf92

Detection Methods for CVE-2023-28486

Indicators of Compromise

  • Presence of raw control characters (bytes 0x00-0x1F, excluding standard whitespace) in sudo log files
  • Log entries that appear to overwrite or corrupt previous entries when viewed
  • Unusual terminal behavior when reviewing /var/log/auth.log or sudo-specific logs
  • Log entries with unexpected formatting or missing portions that could indicate carriage return injection

Detection Strategies

  • Implement log file integrity monitoring to detect unexpected modifications or anomalous entries in sudo logs
  • Use log analysis tools that can identify non-printable control characters in log streams
  • Monitor for sudo version strings in system inventory to identify unpatched instances running versions below 1.9.13
  • Deploy file integrity monitoring (FIM) on critical log files to detect potential tampering

Monitoring Recommendations

  • Configure centralized logging with a SIEM solution that normalizes and sanitizes log input before storage
  • Enable verbose sudo logging with log_input and log_output options to capture full command context
  • Implement alerting for any detected control character sequences in incoming sudo log data
  • Regularly audit sudo configurations across the infrastructure to ensure consistent logging standards

How to Mitigate CVE-2023-28486

Immediate Actions Required

  • Upgrade Sudo to version 1.9.13 or later on all affected systems immediately
  • Review existing sudo logs for signs of exploitation or log injection attempts
  • Implement network segmentation to limit exposure of systems that cannot be immediately patched
  • Consider temporarily restricting sudo access to trusted users until patching is complete

Patch Information

The vulnerability has been addressed in Sudo version 1.9.13. The fix ensures that all control characters in log data are formatted in octal notation with a leading # character, preventing raw control sequences from being written to logs. The official patch is available through the GitHub commit 334daf92b31b79ce68ed75e2ee14fca265f029ca and the Sudo 1.9.13 release.

Distribution-specific patches are available:

  • Debian LTS Advisory
  • Gentoo GLSA 202309-12
  • NetApp Security Advisory

Workarounds

  • Route sudo logs through a log sanitization layer that strips or encodes control characters before storage
  • Use centralized logging systems that automatically normalize and escape special characters
  • Implement strict input validation on systems where sudo command arguments can be influenced by untrusted input
  • Consider using sudoreplay with version 1.9.13+ to safely review historical session logs with proper escaping
bash
# Check current sudo version
sudo --version | head -1

# Update sudo on Debian/Ubuntu systems
sudo apt update && sudo apt install sudo

# Update sudo on RHEL/CentOS systems
sudo yum update sudo

# Update sudo on Fedora systems
sudo dnf update sudo

# Verify updated version (should be 1.9.13 or later)
sudo --version | head -1

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechSudo

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-116
  • Technical References
  • GitHub Release SUDO 1.9.13

  • Debian LTS Announcement

  • Gentoo GLSA 2023-09-12

  • NetApp Security Advisory
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2023-28487: Sudo Information Disclosure Vulnerability

  • CVE-2026-35535: Sudo Privilege Escalation Vulnerability

  • CVE-2021-3156: Sudo Privilege Escalation Vulnerability

  • CVE-2025-32463: 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