The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2025-47906

CVE-2025-47906: Golang Go LookPath Handling Vulnerability

CVE-2025-47906 is a path handling flaw in Golang Go that causes LookPath to unexpectedly return executables from PATH when passed empty strings or dot paths. This article covers technical details, affected versions, and fixes.

Published: April 1, 2026

CVE-2025-47906 Overview

CVE-2025-47906 is a path resolution vulnerability in Go's os/exec package. When the PATH environment variable contains paths that point directly to executables rather than directories, passing certain strings to the LookPath function (specifically "", ".", and "..") can result in unexpected binaries being returned. This behavior could allow an attacker to manipulate application execution by exploiting misconfigured PATH variables.

Critical Impact

Applications using Go's LookPath function may inadvertently execute unintended binaries when the PATH environment variable is malformed, potentially leading to information disclosure or denial of service.

Affected Products

  • Golang Go (various versions)

Discovery Timeline

  • 2025-09-18 - CVE CVE-2025-47906 published to NVD
  • 2026-01-27 - Last updated in NVD database

Technical Details for CVE-2025-47906

Vulnerability Analysis

The vulnerability exists in Go's LookPath function within the os/exec package. Under normal circumstances, LookPath searches for an executable named by the provided file argument within the directories listed in the PATH environment variable. However, when PATH entries incorrectly point to executable files instead of directories, and specific input strings are passed to LookPath, the function exhibits unexpected behavior.

When an application calls LookPath with empty strings (""), current directory references ("."), or parent directory references (".."), the function may incorrectly return binaries that are listed directly in the PATH variable rather than binaries found within PATH directories. This deviation from expected behavior could result in the execution of unintended programs.

Root Cause

The root cause stems from improper handling of edge cases in the LookPath function when processing PATH entries that reference executable files directly instead of directories. The function fails to adequately validate whether PATH components are directories before searching for executables, leading to unexpected path resolution when certain special input values are provided.

Attack Vector

An attacker could exploit this vulnerability in environments where they have control over the PATH environment variable or in applications that process user-influenced paths. The attack vector is network-accessible, requiring no user interaction. An attacker who can influence the PATH configuration or provide specific input to applications using LookPath could potentially:

  1. Cause applications to execute unexpected binaries present in malformed PATH entries
  2. Leverage information disclosure if the unintended binary outputs sensitive data
  3. Trigger denial of service conditions through unexpected program execution

The vulnerability mechanism involves calling LookPath with edge-case inputs ("", ".", or "..") when the PATH environment variable contains executable paths rather than directory paths. See the Go.dev Issue #74466 for detailed technical analysis.

Detection Methods for CVE-2025-47906

Indicators of Compromise

  • Unexpected process executions from applications using Go's os/exec package
  • Anomalous PATH environment variable configurations containing direct executable paths
  • Application logs showing unexpected binary resolutions from LookPath calls

Detection Strategies

  • Monitor Go applications for calls to LookPath with empty or relative path inputs ("", ".", "..")
  • Audit PATH environment variables for entries pointing to executables rather than directories
  • Implement runtime analysis to detect unexpected executable resolution patterns
  • Review application logs for unexpected binary execution paths

Monitoring Recommendations

  • Deploy SentinelOne Singularity Platform to detect unusual process execution chains from Go applications
  • Enable logging for all exec package function calls in critical applications
  • Monitor for PATH environment variable modifications at the system level
  • Track process spawning patterns for Go applications in production environments

How to Mitigate CVE-2025-47906

Immediate Actions Required

  • Update Go installations to the patched version addressing this vulnerability
  • Audit PATH environment variable configurations to ensure all entries point to directories, not executables
  • Review application code for LookPath calls with potentially problematic input values
  • Implement input validation for any user-controlled data that may influence LookPath arguments

Patch Information

Golang has released a fix for this vulnerability. The patch can be found at Go.dev Change CL #691775. Additionally, detailed vulnerability information is available in the Go Vulnerability Report GO-2025-3956. Users should update their Go installations to incorporate this security fix.

The Golang Announcement provides official guidance on affected versions and upgrade paths.

Workarounds

  • Validate PATH environment variables before application execution to ensure all entries are directories
  • Avoid passing empty strings, ".", or ".." directly to LookPath
  • Implement wrapper functions that sanitize inputs before calling LookPath
  • Use absolute paths when executing binaries rather than relying on PATH resolution
bash
# Validate PATH entries before application execution
for path in $(echo $PATH | tr ':' ' '); do
  if [ -f "$path" ] && [ ! -d "$path" ]; then
    echo "WARNING: PATH entry '$path' is a file, not a directory"
  fi
done

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechGolang

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • NVD-CWE-Other
  • Technical References
  • Go.dev Issue #74466

  • Golang Announcement

  • Openwall OSS-Security List Discussion
  • Vendor Resources
  • Go.dev Issue CL #691775

  • Go.dev Vulnerability Report GO-2025-3956
  • Related CVEs
  • CVE-2024-24789: Golang Go Archive/Zip File Vulnerability

  • CVE-2023-45285: Golang Go Insecure Protocol Vulnerability

  • CVE-2021-3114: Golang Go Cryptographic Vulnerability

  • CVE-2025-68121: Golang Go Auth Bypass 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