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

Thu, 14 Aug 2025 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Thu, 07 Aug 2025 22:15:00 +0000

Type Values Removed Values Added
First Time appeared Golang
Golang database Sql
Vendors & Products Golang
Golang database Sql

Thu, 07 Aug 2025 16:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 07 Aug 2025 15:45:00 +0000

Type Values Removed Values Added
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.
Title Incorrect results returned from Rows.Scan in database/sql
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Go

Published: 2025-08-07T15:25:30.704Z

Updated: 2025-08-07T15:48:03.634Z

Reserved: 2025-05-13T23:31:29.597Z

Link: CVE-2025-47907

cve-icon Vulnrichment

Updated: 2025-08-07T15:47:25.067Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-08-07T16:15:30.357

Modified: 2025-08-07T21:26:37.453

Link: CVE-2025-47907

cve-icon Redhat

Severity : Important

Publid Date: 2025-08-07T15:25:30Z

Links: CVE-2025-47907 - Bugzilla