We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2025-47907

Incorrect results returned from Rows.Scan in database/sql



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.

Reserved 2025-05-13 | Published 2025-08-07 | Updated 2025-08-07 | Assigner Go

Problem types

CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Product status

Default status
unaffected

Any version before 1.23.12
affected

1.24.0 before 1.24.6
affected

Credits

Spike Curtis from Coder

References

go.dev/cl/693735

go.dev/issue/74831

groups.google.com/g/golang-announce/c/x5MKroML2yM

pkg.go.dev/vuln/GO-2025-3849

cve.org (CVE-2025-47907)

nvd.nist.gov (CVE-2025-47907)

Download JSON

Share this page
https://cve.threatint.eu/CVE/CVE-2025-47907

Support options

Helpdesk Chat, Email, Knowledgebase