# CVE-2025-47907: Incorrect results returned from Rows.Scan in database/sql

- Severity: High 7.0 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 39% of CVEs (2026-12-01)
- Published: 2025-08-07T15:07:27.000Z
- Modified: 2026-09-08T08:47:49.505Z
- Also known as: GO-2025-3849, BIT-GOLANG-2025-47907
- Related: CGA-hp7c-8j96-c7mq, RHSA-2025:13935, RHSA-2025:13941, RHSA-2025:19397, RHSA-2025:19731, RHSA-2025:20909, RHSA-2025:20983, RHSA-2025:21336, RHSA-2025:21337, RHSA-2025:21382, RHSA-2025:21383, RHSA-2025:21384, RHSA-2025:21385, RHSA-2026:1084
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- database/sql: before 1.23.12; from 1.24.0 before 1.24.6
- stdlib (Go): before 1.23.12; from 1.24.0 before 1.24.6
- golang go: before 1.23.12; from 1.24.0 before 1.24.6
- golang (Bitnami): before 1.23.12; from 1.24.0 before 1.24.6

## Every score

- CISA-ADP: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L`
- Bitnami Vulnerability Database: rating High

## 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)

## Sources

- CVE List: [CVE-2025-47907](https://www.cve.org/CVERecord?id=CVE-2025-47907), CVE Terms of Use, modified 2025-11-04
- Go Vulnerability Database: [GO-2025-3849](https://pkg.go.dev/vuln/GO-2025-3849), CC-BY-4.0, modified 2026-05-30
- NVD: [CVE-2025-47907](https://nvd.nist.gov/vuln/detail/CVE-2025-47907), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2025-47907](https://osv.dev/vulnerability/BIT-GOLANG-2025-47907), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-47907 · Whole record: https://cve.day/CVE-2025-47907.json · Rebuilt by cve.day 2026-11-25T22:59:02.181Z
