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

CVE-2025-47907: Golang Go Race Condition Vulnerability

CVE-2025-47907 is a race condition vulnerability in Golang Go that occurs when canceling queries during Rows.Scan operations, potentially overwriting results with data from parallel queries. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 11, 2026

CVE-2025-47907 Overview

CVE-2025-47907 is a race condition vulnerability in the Go programming language's database/sql package. The vulnerability occurs when cancelling a query (e.g., by cancelling the context passed to one of the query methods) during a call to the Scan method of the returned Rows. This can result in unexpected results if other queries are being made in parallel, potentially causing the call to Scan to return either unexpected results from another query or an error.

Critical Impact

This race condition can lead to data integrity issues where query results may be overwritten with data from a different parallel query, potentially exposing sensitive information across request boundaries or causing application logic errors.

Affected Products

  • Golang Go (multiple versions)

Discovery Timeline

  • 2025-08-07 - CVE CVE-2025-47907 published to NVD
  • 2026-01-29 - Last updated in NVD database

Technical Details for CVE-2025-47907

Vulnerability Analysis

This vulnerability stems from improper synchronization in the Go database/sql package when handling concurrent query operations combined with context cancellation. When a query context is cancelled while the Scan method is actively processing results, a race condition can occur that allows data from parallel queries to contaminate the expected result set.

The vulnerability requires concurrent database operations to be exploited, making it particularly relevant for high-traffic applications that perform multiple simultaneous database queries. The race condition occurs at the boundary between context cancellation handling and row scanning operations, where proper locking or synchronization was not enforced.

Root Cause

The root cause is classified as CWE-362 (Concurrent Execution using Shared Resource with Improper Synchronization). The database/sql package's internal handling of row data and connection pooling did not properly isolate query results during context cancellation events, allowing shared state to be corrupted when multiple goroutines access database connections simultaneously.

Attack Vector

The vulnerability is exploitable over the network by any application that processes concurrent database queries. An attacker who can influence the timing of query cancellations—such as through crafted requests that trigger timeouts or cancellations—could potentially cause information disclosure by having query results from one session leak into another.

The exploitation scenario involves:

  1. Multiple concurrent database queries using shared connection pools
  2. Context cancellation occurring during the Scan operation
  3. Race condition causing result data from one query to overwrite another
  4. Potential exposure of sensitive data across request boundaries

For detailed technical information, see the Go.dev Issue Report #74831 and the Openwall OSS Security Discussion.

Detection Methods for CVE-2025-47907

Indicators of Compromise

  • Unexpected or inconsistent data returned from database queries
  • Application errors indicating type mismatches during Scan operations
  • Intermittent failures in database query results under high concurrency
  • User reports of seeing data that belongs to other sessions or requests

Detection Strategies

  • Monitor application logs for unexpected Scan errors or type conversion failures that occur sporadically under load
  • Implement request tracing to correlate database query results with expected values
  • Use race detection tools (go run -race) during testing and staging environments
  • Audit code paths that combine context cancellation with parallel database queries

Monitoring Recommendations

  • Enable verbose database driver logging to track connection pool behavior and query lifecycle events
  • Implement application-level validation to verify query results match expected schemas
  • Set up alerting for increases in database-related errors during high concurrency periods
  • Monitor for unusual patterns in context cancellation rates that could indicate exploitation attempts

How to Mitigate CVE-2025-47907

Immediate Actions Required

  • Update Golang Go to a patched version as specified in Go.dev Change Log #693735
  • Review application code for patterns that combine context cancellation with concurrent database queries
  • Consider implementing application-level synchronization around critical database operations
  • Test applications under concurrent load with race detection enabled

Patch Information

The Go team has released a patch addressing this race condition. Detailed patch information is available at Go.dev Change Log #693735 and the official Go.dev Vulnerability Report GO-2025-3849. Organizations should update to the patched Go version immediately and rebuild affected applications.

Workarounds

  • Avoid cancelling query contexts while Scan operations are in progress
  • Serialize database operations in critical code paths to prevent concurrent access
  • Implement mutex locks around database query blocks that use context cancellation
  • Use separate database connections for queries that may be cancelled versus long-running queries
bash
# Check your Go version and update
go version
# Update to the latest patched Go version
go install golang.org/dl/go1.XX.X@latest
# Rebuild applications with race detection to verify fix
go build -race ./...

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

  • Vulnerability Details
  • TypeRace Condition

  • Vendor/TechGolang

  • SeverityHIGH

  • CVSS Score7.0

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-362
  • Technical References
  • Go.dev Issue Report #74831

  • Golang Announce Google Group Post

  • Openwall OSS Security Discussion
  • Vendor Resources
  • Go.dev Change Log #693735

  • Go.dev Vulnerability Report GO-2025-3849
  • Related CVEs
  • CVE-2021-36221: Golang Go Race Condition Vulnerability

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