GO-2025-3849

Incorrect results returned from Rows.Scan in database/sql

At a glance

Published
Updated
CVE
CVE-2025-47907
Aliases
BIT-golang-2025-47907

Description

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.

Affected packages

PackageVersions
Go · stdlibintroduced 0, fixed 1.23.12, introduced 1.24.0, fixed 1.24.6

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database