Race Condition in Go's Database Interaction Leading to Unexpected Query Results
CVE-2025-47907
7HIGH
What is CVE-2025-47907?
This vulnerability arises when queries are cancelled unexpectedly during ongoing database operations, particularly during the execution of the Scan method. If multiple queries are processed in parallel, this can lead to a race condition where the results of one query may overwrite the expected results from another, potentially causing erroneous outputs or errors during operations. Proper handling of query cancellations and synchronization mechanisms is crucial to prevent this issue.
Affected Version(s)
database/sql 0 < 1.23.12
database/sql 1.24.0 < 1.24.6