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

CVE-2023-29403: Golang Go Privilege Escalation Vulnerability

CVE-2023-29403 is a privilege escalation vulnerability in Golang Go runtime affecting setuid/setgid binaries on Unix platforms. Attackers can exploit this to access elevated privileges. Learn about technical details, affected versions, impact, and mitigation strategies.

Published: January 28, 2026

CVE-2023-29403 Overview

CVE-2023-29403 is a privilege escalation vulnerability in the Go runtime on Unix platforms. The Go runtime does not behave differently when a binary is run with the setuid/setgid bits set, creating dangerous conditions that can lead to unauthorized access to sensitive data or elevated privilege execution.

This vulnerability poses significant risks in scenarios where Go binaries are executed with elevated permissions. When a setuid/setgid binary is executed with standard I/O file descriptors closed, opening any files can result in unexpected content being read or written with elevated privileges. Additionally, if a setuid/setgid program terminates via panic or signal, it may leak the contents of its CPU registers, potentially exposing sensitive information.

Critical Impact

Setuid/setgid Go binaries may leak register contents upon termination or allow file operations with elevated privileges when standard I/O descriptors are closed.

Affected Products

  • Golang Go (multiple versions prior to patches)
  • Fedora 38
  • Other Unix-based systems running vulnerable Go versions

Discovery Timeline

  • 2023-06-08 - CVE CVE-2023-29403 published to NVD
  • 2025-01-06 - Last updated in NVD database

Technical Details for CVE-2023-29403

Vulnerability Analysis

The vulnerability stems from how the Go runtime handles setuid and setgid binaries on Unix platforms. Unlike many other runtimes that implement special safeguards when detecting elevated privilege execution, the Go runtime processes these binaries identically to non-privileged executions. This design oversight creates multiple attack vectors.

When a setuid/setgid binary executes with closed standard file descriptors (stdin, stdout, stderr), subsequent file open operations may inadvertently use file descriptors 0, 1, or 2. This can result in sensitive files being opened where standard I/O would normally be expected, leading to unintended data exposure or modification with elevated privileges.

Furthermore, when a setuid/setgid program terminates abnormally through a panic or signal, the Go runtime's default behavior may dump memory state including CPU register contents. In a privileged context, these registers may contain sensitive information such as cryptographic keys, authentication tokens, or other security-critical data.

Root Cause

The root cause is classified as CWE-668 (Exposure of Resource to Wrong Sphere). The Go runtime fails to implement proper security checks and mitigations when detecting that a binary is running with elevated setuid or setgid privileges. This represents a deviation from security best practices where privileged binaries should implement additional safeguards including:

  • Ensuring standard file descriptors are open or explicitly closed/reopened
  • Preventing memory state dumps that could leak sensitive register contents
  • Restricting certain runtime behaviors that could be exploited in a privileged context

Attack Vector

The attack requires local access and user interaction. An attacker would need to:

  1. Identify a Go binary installed with setuid or setgid bits on a Unix system
  2. Manipulate the execution environment by closing standard I/O file descriptors before executing the binary
  3. Trigger file operations within the binary that would then use the privileged file descriptors
  4. Alternatively, cause the program to panic or receive a signal to potentially leak register contents

The local attack vector requires the attacker to have some level of access to the target system, but the impact can be significant as it may result in reading or writing files with elevated privileges, or disclosure of sensitive data from memory.

Detection Methods for CVE-2023-29403

Indicators of Compromise

  • Unexpected file access patterns from Go binaries running with setuid/setgid permissions
  • Core dumps or panic logs from privileged Go processes containing sensitive register data
  • Anomalous file descriptor usage in privileged Go processes
  • System logs indicating privilege escalation attempts via Go runtime behavior

Detection Strategies

  • Audit all Go binaries installed with setuid or setgid bits using find / -perm /6000 -type f 2>/dev/null
  • Monitor for Go process terminations that produce memory dumps in privileged contexts
  • Implement file integrity monitoring on sensitive files that could be targeted through this vulnerability
  • Review application logs for unexpected file access patterns from Go applications

Monitoring Recommendations

  • Deploy endpoint detection and response (EDR) solutions to monitor privileged process behavior
  • Configure system auditing to track setuid/setgid binary executions
  • Monitor for attempts to close standard file descriptors before executing privileged binaries
  • Implement alerting for core dumps from processes running with elevated privileges

How to Mitigate CVE-2023-29403

Immediate Actions Required

  • Identify all Go binaries with setuid/setgid bits in your environment
  • Update to patched Go versions as specified in the vendor advisory
  • Consider temporarily removing setuid/setgid bits from Go binaries until patching is complete
  • Review and audit any custom Go applications that may run with elevated privileges

Patch Information

Golang has released patches to address this vulnerability. The fix is documented in Go.dev CL #501223 and tracked in Go.dev Issue #60272. Additional details are available in the Go Vulnerability Database entry GO-2023-1840.

Organizations should update their Go installations to the latest patched versions. Linux distributions including Fedora have released updated packages, as noted in the Fedora Package Announcements.

Workarounds

  • Remove setuid/setgid bits from Go binaries where elevated privileges are not strictly required
  • Implement wrapper scripts that ensure standard file descriptors are properly initialized before executing Go binaries
  • Use capability-based privilege management instead of setuid/setgid where possible
  • Configure systems to suppress core dumps from privileged processes using ulimit or kernel parameters
bash
# Remove setuid/setgid bits from Go binaries (evaluate impact first)
find /usr/local/go -perm /6000 -type f -exec chmod ug-s {} \;

# Prevent core dumps from privileged processes
echo 'fs.suid_dumpable = 0' >> /etc/sysctl.conf
sysctl -p

# Audit existing setuid/setgid Go binaries
find / -perm /6000 -type f -exec file {} \; 2>/dev/null | grep -i "go"

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechGolang

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-668
  • Technical References
  • Go.dev Issue #60272

  • Golang Announcement Thread

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 202311-09

  • NetApp Security Advisory NTAP-20241220-0009
  • Vendor Resources
  • Go.dev CL #501223

  • Go.dev Vulnerability GO-2023-1840
  • Related CVEs
  • CVE-2025-68121: Golang Go Auth Bypass Vulnerability

  • CVE-2025-47911: Go html.Parse DoS Vulnerability

  • CVE-2025-58190: Golang x/net/html DoS Vulnerability

  • CVE-2025-47907: Golang Go Race Condition 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