CVE-2025-47907
JSON

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 packageVersionsReported by
database/sqlbefore 1.23.12, from 1.24.0 before 1.24.6CVE List
stdlib (Go)before 1.23.12, from 1.24.0 before 1.24.6Go Vulnerability Database
golang gobefore 1.23.12, from 1.24.0 before 1.24.6NVD
golang (Bitnami)before 1.23.12, from 1.24.0 before 1.24.6Bitnami Vulnerability Database

All scores

CISA-ADP7.0high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L
Bitnami Vulnerability Databasehigh rating

Classification

CWE-362

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/693735fix, patch
https://go.dev/issue/74831advisory, issue-tracking, report, third-party-advisory
https://groups.google.com/g/golang-announce/c/x5MKroML2yMdiscussion, mailing-list, release-notes, web
https://pkg.go.dev/vuln/GO-2025-3849advisory, vendor-advisory
http://www.openwall.com/lists/oss-security/2025/08/06/1discussion, mailing-list, release-notes
https://nvd.nist.gov/vuln/detail/CVE-2025-47907web

Related

Sources

SourceRecordLicence
CVE ListCVE-2025-47907 changed 2025-11-04CVE Terms of Use
Go Vulnerability DatabaseGO-2025-3849 changed 2026-05-30CC-BY-4.0
NVDCVE-2025-47907 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2025-47907 changed 2026-09-08Apache-2.0