A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2025-61732

CVE-2025-61732: Go cgo RCE Vulnerability

CVE-2025-61732 is a remote code execution vulnerability in Go cgo that exploits comment parsing discrepancies between Go and C/C++ to smuggle malicious code. This article covers technical details, affected versions, and mitigation.

Published: February 6, 2026

CVE-2025-61732 Overview

CVE-2025-61732 is a code injection vulnerability affecting Go's cgo tooling, where a discrepancy between how Go and C/C++ comments are parsed allows for malicious code smuggling into the resulting cgo binary. This parsing inconsistency creates a dangerous situation where attackers can craft specially designed source files that appear benign during Go-level review but execute arbitrary code when processed by the C/C++ compiler.

Critical Impact

Attackers can smuggle arbitrary code into compiled cgo binaries by exploiting comment parsing differences between Go and C/C++ compilers, potentially leading to supply chain compromise and arbitrary code execution.

Affected Products

  • Go programming language (cgo component)
  • Applications utilizing cgo for C/C++ interoperability
  • Build systems processing untrusted Go source files with cgo

Discovery Timeline

  • 2026-02-05 - CVE CVE-2025-61732 published to NVD
  • 2026-02-05 - Last updated in NVD database

Technical Details for CVE-2025-61732

Vulnerability Analysis

This vulnerability stems from a fundamental parsing discrepancy between Go's cgo tooling and standard C/C++ compilers. When cgo processes Go source files containing C code blocks, it interprets comment boundaries differently than the downstream C/C++ compiler. This semantic gap creates an opportunity for code injection attacks.

The vulnerability is classified under CWE-94 (Improper Control of Generation of Code - Code Injection), indicating that user-controlled input can influence code generation in an unsafe manner. An attacker can construct source files where portions of code are treated as comments by Go's parser but are interpreted as executable code by the C/C++ compiler, or vice versa.

The attack requires local access and user interaction—specifically, the victim must compile or import malicious code. However, successful exploitation can result in complete compromise of confidentiality, integrity, and availability on the target system, with the potential for cross-boundary impact affecting other system components.

Root Cause

The root cause lies in the implementation differences between Go's comment parsing logic within cgo and the comment parsing specifications of C and C++ languages. These languages have subtle differences in how they handle certain character sequences within comments, particularly around edge cases involving nested comments, Unicode sequences, or line continuation characters.

When cgo extracts C code from Go source files, it applies Go's understanding of comment boundaries. The extracted code is then passed to the C/C++ compiler, which applies its own comment parsing rules. Code hidden within what Go considers a comment may be visible to the C compiler, allowing malicious code to be silently injected into the final binary.

Attack Vector

The attack vector is local, requiring an attacker to convince a developer or build system to compile malicious Go source code that uses cgo. This could occur through:

  1. Supply chain attacks where malicious packages are published to public Go module repositories
  2. Contribution of seemingly innocuous pull requests to open-source projects
  3. Distribution of compromised development tools or templates
  4. Social engineering attacks targeting developers

The malicious code appears legitimate during code review since the smuggled code is hidden within what Go's parser considers a comment block. However, when the code is compiled, the C/C++ compiler executes the hidden payload.

The vulnerability mechanism exploits parser differentials—the smuggled code could perform actions such as:

  • Establishing persistence mechanisms
  • Exfiltrating sensitive data during build processes
  • Injecting backdoors into compiled applications
  • Compromising build infrastructure

For technical details and exploitation mechanics, see the Go.dev Security Issue and vulnerability report.

Detection Methods for CVE-2025-61732

Indicators of Compromise

  • Unusual character sequences or Unicode characters within cgo comment blocks in Go source files
  • Source files containing C code blocks with complex or nested comment structures
  • Build artifacts with unexpected code sections not visible in source review
  • Anomalous network activity or system calls originating from recently compiled Go binaries

Detection Strategies

  • Implement static analysis tools that compare comment parsing between Go and C/C++ interpreters
  • Monitor build processes for unexpected compiler warnings or anomalous code generation
  • Deploy binary analysis tools to compare expected functionality against actual compiled output
  • Review cgo-containing source files with tools that highlight parser differential edge cases

Monitoring Recommendations

  • Enable verbose logging during cgo compilation processes to capture intermediate C code
  • Implement integrity monitoring on build systems to detect unauthorized binary modifications
  • Set up alerts for Go module imports from untrusted or newly published packages
  • Monitor for unusual process spawning or network connections during build operations

How to Mitigate CVE-2025-61732

Immediate Actions Required

  • Update to a patched version of Go as specified in the Go.dev changelist
  • Audit existing cgo-containing code for suspicious comment patterns
  • Temporarily disable cgo compilation for untrusted code (CGO_ENABLED=0)
  • Review recent builds and deployments for potential compromise

Patch Information

The Go team has addressed this vulnerability through code changes that harmonize comment parsing behavior between cgo and downstream C/C++ compilers. The fix is tracked in the Go.dev changelist CL 734220. Organizations should upgrade to the latest patched Go release immediately. Additional details are available in the Go vulnerability report GO-2026-4433 and the golang-announce mailing list post.

Workarounds

  • Set CGO_ENABLED=0 environment variable to disable cgo when C interoperability is not required
  • Implement strict code review processes specifically examining cgo comment blocks
  • Use containerized or sandboxed build environments to limit potential impact
  • Pin Go module dependencies to known-good versions and verify checksums
bash
# Configuration example
# Disable cgo compilation as a temporary mitigation
export CGO_ENABLED=0

# Verify cgo is disabled before building
go env CGO_ENABLED

# Build without cgo support
go build -o myapp ./...

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechN/A

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability0.01%

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

  • Go.dev Security Issue

  • Golang Announce Group Post

  • Go.dev Vulnerability Report
  • Latest CVEs
  • CVE-2025-11956: OBS Student Affairs System XSS Flaw

  • CVE-2026-49199: Acer Predator Connect W6x Firmware RCE Flaw

  • CVE-2026-46344: Openquantumsafe Liboqs DOS Vulnerability

  • CVE-2026-44518: Openquantumsafe Liboqs DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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