CVE-2025-47907 Details
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.
A race condition vulnerability has been identified in the Go programming language's database/sql package, specifically in versions prior to 1.23.12 and between 1.24.0 and 1.24.6. This vulnerability arises when a query is cancelled—by terminating the context used in the query methods—while the Scan method of the resulting Rows is being executed. Such a cancellation can lead to unexpected outcomes, especially if other queries are running concurrently. The interference may cause the Scan method to return incorrect results from a different query or generate an error instead.
Users can upgrade to Go versions 1.24.6 or 1.23.12, both of which include the necessary fix. After updating, verify that the application behaves as expected without any data race issues.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 7, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2025/08/06/1 | CVE | Mailing ListRelease Notes |
| https://go.dev/cl/693735 | [email protected] | Patch |
| https://go.dev/issue/74831 | [email protected] | Issue TrackingThird Party Advisory |
| https://groups.google.com/g/golang-announce/c/x5MKroML2yM | [email protected] | Mailing ListRelease Notes |
| https://pkg.go.dev/vuln/GO-2025-3849 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| golang go | < 1.23.12 >= 1.24.0, < 1.24.6 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 29, 2026 | Initial Analysis | [email protected] |
| Nov 4, 2025 | CVE Modified | CVE |
| Aug 7, 2025 | New CVE Received | [email protected] |
| Aug 7, 2025 | CVE Modified | CISA-ADP |