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

CVE-2023-29383: Shadow Information Disclosure Flaw

CVE-2023-29383 is an information disclosure vulnerability in Shadow 4.13 that allows control character injection into chfn fields, enabling attackers to misrepresent /etc/passwd. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 11, 2026

CVE-2023-29383 Overview

CVE-2023-29383 is a control character injection vulnerability in the Shadow password suite version 4.13. The vulnerability exists in the SUID program chfn (change finger), which allows local users to inject control characters into GECOS fields. While direct exploitation for privilege escalation is blocked (e.g., newline characters are in the block list), an attacker can use carriage return (\r) manipulations and Unicode characters to bypass blocking of the colon (:) character. This creates a scenario where viewing /etc/passwd with standard utilities like cat displays misleading content suggesting that rogue user accounts have been added to the system.

Critical Impact

An adversary can manipulate how /etc/passwd appears when viewed, potentially convincing system administrators that the system has been compromised with rogue user accounts, leading to an indirect, social-engineered denial of service through unnecessary system downtime.

Affected Products

  • Shadow 4.13
  • shadow_project shadow

Discovery Timeline

  • 2023-04-14 - CVE CVE-2023-29383 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2023-29383

Vulnerability Analysis

This vulnerability represents an input validation error that allows injection of control characters into the GECOS field of /etc/passwd through the chfn SUID utility. The chfn command is designed to allow users to modify their finger information (full name, office number, phone numbers) stored in the system password file. While the implementation includes a block list to prevent certain dangerous characters like newline (\n) and colon (:), it fails to adequately filter carriage return (\r) and certain Unicode characters.

The attack leverages the way terminal emulators interpret control characters. By injecting \r (carriage return) characters, an attacker can cause the terminal to return to the beginning of the line when displaying the file, effectively overwriting the visual representation of the legitimate entry with arbitrary content. Combined with Unicode character tricks to represent blocked characters, this allows an attacker to craft GECOS field content that, when viewed with commands like cat /etc/passwd, appears to show additional malicious user accounts.

Root Cause

The root cause lies in insufficient input validation within the valid_field() function in lib/fields.c. The original implementation checked for illegal characters and non-printable characters but did not explicitly block all control characters, particularly the carriage return character. The security patch updated the function to explicitly reject control characters, not just the previously blocked illegal characters.

Attack Vector

This vulnerability requires local access to the system. An attacker with a valid user account can execute the chfn command and provide specially crafted input containing control characters and Unicode sequences. The attack flow involves:

  1. The attacker uses chfn to modify their GECOS field with crafted content containing \r sequences
  2. The malicious content is written to /etc/passwd since the characters weren't properly filtered
  3. When an administrator views /etc/passwd using standard terminal utilities, the control characters manipulate the display
  4. The administrator sees what appears to be unauthorized user accounts in the system
c
  *
  * The supplied field is scanned for non-printable and other illegal
  * characters.
- *  + -1 is returned if an illegal character is present.
- *  +  1 is returned if no illegal characters are present, but the field
- *       contains a non-printable character.
+ *  + -1 is returned if an illegal or control character is present.
+ *  +  1 is returned if no illegal or control characters are present,
+ *       but the field contains a non-printable character.
  *  +  0 is returned otherwise.
  */
 int valid_field (const char *field, const char *illegal)

Source: GitHub Commit Update

Detection Methods for CVE-2023-29383

Indicators of Compromise

  • Unusual or non-printable characters present in GECOS fields within /etc/passwd
  • Discrepancies between the output of cat /etc/passwd and hexdump -C /etc/passwd indicating embedded control characters
  • Recent chfn command executions by non-administrative users visible in system logs

Detection Strategies

  • Compare the visual output of /etc/passwd with a hexadecimal dump to identify hidden control characters
  • Implement file integrity monitoring on /etc/passwd to detect unauthorized modifications
  • Monitor audit logs for chfn command usage, particularly with unusual input patterns
  • Use tools that display raw bytes rather than interpreting control characters when reviewing sensitive system files

Monitoring Recommendations

  • Configure auditd rules to log all modifications to /etc/passwd and executions of the chfn binary
  • Establish baseline GECOS field values and alert on changes containing non-standard characters
  • Regularly verify /etc/passwd integrity using checksums against known-good copies

How to Mitigate CVE-2023-29383

Immediate Actions Required

  • Update the Shadow package to a version containing the security patch (commit e5905c4b84d4fb90aefcd96ee618411ebfac663d)
  • Review /etc/passwd for any existing entries with suspicious control characters
  • Consider restricting access to the chfn utility if not required in your environment
  • Educate system administrators about this attack vector to prevent social engineering success

Patch Information

The Shadow project has released a patch that updates the valid_field() function in lib/fields.c to explicitly check for and reject control characters in addition to previously blocked illegal characters. The fix is available in the GitHub Commit Update. The patch modifies the field validation logic to return -1 when any control character is detected, preventing them from being written to /etc/passwd.

For Debian-based systems, refer to the Debian LTS Announcement for package update information.

Workarounds

  • Remove the SUID bit from the chfn binary using chmod u-s /usr/bin/chfn if the functionality is not required
  • Use PAM configuration to restrict which users can execute chfn
  • When verifying /etc/passwd integrity, use cat -v /etc/passwd or hexdump to reveal hidden control characters rather than relying on standard cat output
bash
# Remove SUID bit from chfn if functionality is not needed
chmod u-s /usr/bin/chfn

# Verify /etc/passwd for hidden control characters
cat -v /etc/passwd

# Alternative verification using hexdump
hexdump -C /etc/passwd | grep -v "00 00"

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechShadow Project

  • SeverityLOW

  • CVSS Score3.3

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-74

  • CWE-125
  • Technical References
  • GitHub Pull Request #687

  • Trustwave Blog on CVE-2023-29383

  • Trustwave Security Advisory #31797

  • Debian LTS Announcement
  • Vendor Resources
  • GitHub Commit Update
  • Latest CVEs
  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal Vulnerability

  • CVE-2026-40259: SiYuan Auth Bypass Vulnerability

  • CVE-2026-40255: AdonisJS HTTP Server CSRF 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