Vulnerability in Golang Go
CVE-2025-47907
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.
Vulnerability class: Race Condition
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.0 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L.
EPSS exploit prediction
EPSS 0.004, 38.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Golang Go
- Go Standard Library Database/sql — versions 0, 1.24.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 5 other repositories (8-cm/kube-dump, ARPSyndicate/cve-scores, redducklabs/redducklabs-runners, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- go.dev/cl/693735 (Patch)
- go.dev/issue/74831 (Third Party Advisory, Issue Tracking)
- groups.google.com/g/golang-announce/c/x5MKroML2yM (Mailing List, Release Notes)
- pkg.go.dev/vuln/GO-2025-3849 (Vendor Advisory)
- www.openwall.com/lists/oss-security/2025/08/06/1 (Mailing List, Release Notes)