CVE-2025-47907

Incorrect results returned from Rows.Scan in database/sql

HIGH
7
CVSS Score
Published: August 7, 2025 at 03:25 PM UTC
Updated: June 17, 2026 at 09:28 AM UTC
2 products affected across 2 vendorsGoDatabase/sql

Using database/sql by Go standard library?

Get instant alerts when new vulnerabilities affect database/sql - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7
Exploit prediction
EPSS 0.4%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.23.121.24.0 ≤ v < 1.24.6
v < 1.23.121.24.0 ≤ v < 1.24.61.24.0
Affected range stops below 1.23.12, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.24.6, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (5)

Issue TrackingThird Party Advisory
https://go.dev/issue/74831
Mailing ListRelease Notes
Source: af854a3a-2127-422b-91ae-364da2661108
http://www.openwall.com/lists/oss-security/2025/08/06/1

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7HIGHCISA-ADP
Attack Vector
NETWORK
Complexity
HIGH
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
LOW
Availability
LOW
Vector?

Quick Info

StatusANALYZED
CWE
CWE-362

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card