CVE-2025-47907

Incorrect results returned from Rows.Scan in database/sql

State
Published
Severity
7.0 High
Published
Aug 7, 2025
Updated
Nov 4, 2025
Reserved
May 13, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.0 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:LCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
database/sqlGo standard library
  • before 1.23.12Affected
  • 1.24.0 to before 1.24.6Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.