Race Condition in Go's Database Interaction Leading to Unexpected Query Results
CVE-2025-47907

7HIGH

Key Information:

Vendor
CVE Published:
7 August 2025

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

References

CVSS V3.1

Score:
7
Severity:
HIGH
Confidentiality:
High
Integrity:
Low
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Spike Curtis from Coder
.
CVE-2025-47907 : Race Condition in Go's Database Interaction Leading to Unexpected Query Results