7.0high
Incorrect results returned from Rows.Scan in database/sql
- Severity
- 7.0high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.44% (higher than 39% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GO-2025-3849BIT-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
| Product or package | Versions | Reported by |
|---|---|---|
| database/sql | before 1.23.12, from 1.24.0 before 1.24.6 | CVE List |
| stdlib (Go) | before 1.23.12, from 1.24.0 before 1.24.6 | Go Vulnerability Database |
| golang go | before 1.23.12, from 1.24.0 before 1.24.6 | NVD |
| golang (Bitnami) | before 1.23.12, from 1.24.0 before 1.24.6 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 7.0high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Cancelar una consulta (p. ej., cancelando el contexto pasado a uno de los métodos de consulta) durante una llamada al método Scan de las filas devueltas puede generar resultados inesperados si se realizan otras consultas en paralelo. Esto puede generar una condición de ejecución que sobrescriba los resultados esperados con los de otra consulta, provocando que la llamada a Scan devuelva resultados inesperados de la otra consulta o un error.
References
| https://go.dev/cl/693735 | fix, patch | |
| https://go.dev/issue/74831 | advisory, issue-tracking, report, third-party-advisory | |
| https://groups.google.com/g/golang-announce/c/x5MKroML2yM | discussion, mailing-list, release-notes, web | |
| https://pkg.go.dev/vuln/GO-2025-3849 | advisory, vendor-advisory | |
| http://www.openwall.com/lists/oss-security/2025/08/06/1 | discussion, mailing-list, release-notes | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-47907 | web | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-47907 changed 2025-11-04 | CVE Terms of Use |
| Go Vulnerability Database | GO-2025-3849 changed 2026-05-30 | CC-BY-4.0 |
| NVD | CVE-2025-47907 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2025-47907 changed 2026-09-08 | Apache-2.0 |