Advisory

GO-2025-3849

Also known as: BIT-golang-2025-47907, CVE-2025-47907

Summary

Incorrect results returned from Rows.Scan in database/sql

Details

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.

Severity

Not rated by the source.

Dates

Published
2025-08-07 15:07 UTC
Modified
2026-05-30 10:29 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.23.12, introduced 1.24.0, fixed 1.24.6 (semver)

Fixed versions

1.23.12, 1.24.6

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences