Race Condition Affecting std/database/sql package, versions <1.23.12>=1.24.0 <1.24.6


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-STDDATABASESQL-14545642
  • published6 Jan 2026
  • disclosed7 Aug 2025
  • creditSpike Curtis from Coder

Introduced: 7 Aug 2025

CVE-2025-47907  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade std/database/sql to version 1.23.12, 1.24.6 or higher.

Overview

std/database/sql is a Go standard library package std/database/sql

Affected versions of this package are vulnerable to Race Condition.

Go Vulnerability Report:
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 can result in unexpected results if other queries are being made in parallel. This can result in a race condition that may overwrite the expected results with those of another query, causing the call to Scan to return either unexpected results from the other query or an error.

CVSS Base Scores

version 4.0
version 3.1