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
EPSS: 0.004 (28.2th percentile) — read the EPSS interpretation.
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.
Affected products
- Golang Go
- Go Standard Library Database/sql — versions 0, 1.24.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security@golang.org (Patch)
- security@golang.org (Third Party Advisory, Issue Tracking)
- security@golang.org (Mailing List, Release Notes)
- security@golang.org (Vendor Advisory)
- af854a3a-2127-422b-91ae-364da2661108 (Mailing List, Release Notes)
Frequently asked questions
- What is CVE-2025-47907?
- CVE-2025-47907 is a high-severity vulnerability in Golang Go, classified under Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition). CVSS score: 7.0/10. Published 2025-08-07.
- How severe is CVE-2025-47907?
- High severity. CVSS v3 base score is 7.0 out of 10.
- Is CVE-2025-47907 known to be exploited?
- 5 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.