High severity · published Aug 7, 2025
CVE-2025-47907
Incorrect results returned from Rows.Scan in database/sql
7.0
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Confidentiality
High
Integrity
Low
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 35% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DA
database/sql · Go standard library
before 1.23.12; 1.24.0 before 1.24.6 · source: vendor
GO
GO · Golang
before 1.23.12; 1.24.0 before 1.24.6 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-47907
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-47907
Patch
https://go.dev/cl/693735
Issue Tracking
https://go.dev/issue/74831
Mailing List
https://groups.google.com/g/golang-announce/c/x5MKroML2yM
Vendor Advisory
https://pkg.go.dev/vuln/GO-2025-3849
Mailing List
http://www.openwall.com/lists/oss-security/2025/08/06/1
