A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    • 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
    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
    Identity Security
    • Singularity Identity
      Identity Threat Detection and Response
  • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-28487

CVE-2023-28487: Sudo Information Disclosure Vulnerability

CVE-2023-28487 is an information disclosure vulnerability in Sudo that fails to escape control characters in sudoreplay output, potentially exposing sensitive data. This article covers technical details, affected versions, and mitigation.

Published: February 4, 2026

CVE-2023-28487 Overview

CVE-2023-28487 is an Improper Encoding or Escaping of Output vulnerability (CWE-116) affecting Sudo versions prior to 1.9.13. The vulnerability exists because Sudo fails to escape control characters in sudoreplay output, potentially allowing attackers to inject malicious control sequences that could manipulate terminal displays or obfuscate malicious activity in audit logs.

Critical Impact

Unescaped control characters in sudoreplay output can be leveraged to manipulate terminal displays, inject ANSI escape sequences, or potentially hide malicious commands from administrators reviewing sudo session logs.

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-28487 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-28487

Vulnerability Analysis

This vulnerability stems from insufficient output encoding in the sudoreplay utility, which is used to replay sudo session recordings for audit and forensic purposes. When control characters are present in logged command data, they are not properly escaped before being displayed or written to logs.

Control characters (ASCII codes 0-31) include special sequences like tabs, carriage returns, and ANSI escape codes. When these characters pass through sudoreplay unescaped, an attacker who has executed commands containing embedded control characters can:

  1. Manipulate the visual appearance of audit logs
  2. Inject ANSI escape sequences that could alter terminal behavior
  3. Hide portions of malicious commands from administrators reviewing session recordings
  4. Potentially exploit terminal emulator vulnerabilities through crafted escape sequences

The vulnerability affects both the session replay functionality and the list mode (sudoreplay -l) used to enumerate available sessions.

Root Cause

The root cause is the failure to sanitize control characters in the log output processing code. Prior to version 1.9.13, the sudoreplay utility would output raw control characters directly to the terminal or log destination without any encoding or escaping, violating secure output handling practices defined in CWE-116 (Improper Encoding or Escaping of Output).

Attack Vector

The attack vector is network-accessible, requiring no privileges or user interaction. An attacker with the ability to execute commands via sudo can embed control characters in their commands or arguments. When an administrator later uses sudoreplay to review the session, these control characters are rendered directly, potentially:

  • Hiding the true nature of executed commands
  • Injecting misleading information into the terminal display
  • Triggering unintended behavior in the reviewing terminal emulator

The fix implements octal encoding for control characters, using a # prefix (e.g., #011 for horizontal tab, #015 for carriage return, #040 for spaces in command paths).

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.

Source: GitHub Sudo Commit

Detection Methods for CVE-2023-28487

Indicators of Compromise

  • Unusual control characters or escape sequences appearing in sudo logs
  • Log entries containing raw binary data or non-printable characters
  • Session recordings that display unexpectedly when replayed
  • Terminal anomalies when reviewing sudoreplay output

Detection Strategies

  • Audit sudo version across systems to identify installations running versions prior to 1.9.13
  • Monitor sudo log files for non-printable ASCII characters (codes 0-31)
  • Implement log analysis rules to detect embedded ANSI escape sequences in command logs
  • Use file integrity monitoring on sudo-related binaries and configuration files

Monitoring Recommendations

  • Enable comprehensive sudo logging with I/O logging for forensic capabilities
  • Implement centralized log collection to capture sudo session data in a controlled environment
  • Configure alerting for commands containing unusual character patterns
  • Review sudoreplay output in sanitized terminal environments or through log processing tools that neutralize control sequences

How to Mitigate CVE-2023-28487

Immediate Actions Required

  • Upgrade Sudo to version 1.9.13 or later immediately
  • Review existing sudo session logs for potential manipulation attempts
  • Implement terminal emulator hardening to limit escape sequence processing
  • Consider reviewing critical sudo sessions using raw log files rather than terminal replay

Patch Information

The vulnerability has been addressed in Sudo version 1.9.13. The fix implements proper octal encoding for all control characters in log messages and sudoreplay -l output. Security patches are available through the official Sudo release and the commit 334daf92b31b79ce68ed75e2ee14fca265f029ca.

Distribution-specific updates are available via:

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

Workarounds

  • Pipe sudoreplay output through cat -v to display control characters visibly
  • Review session logs using tools that escape or strip control characters before display
  • Avoid using terminal emulators with extensive escape sequence support when reviewing untrusted session recordings
  • Implement log sanitization at the collection layer before administrative review
bash
# Example: View sudoreplay output with control characters made visible
sudoreplay -l | cat -v

# Example: Check current sudo version
sudo -V | head -1

# Verify sudo version is 1.9.13 or later to confirm patch

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.11%

  • 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 Sudo Release Tag

  • Debian LTS Announcement

  • Gentoo GLSA 202309-12

  • NetApp Security Advisory
  • Vendor Resources
  • GitHub Sudo Commit Change
  • Related CVEs
  • CVE-2025-32463

  • CVE-2025-32462

  • CVE-2023-22809
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
  • English
  • 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