CVE 7 HIGH

Incorrect results returned from Rows.Scan in database/sql_CVE-2025-47907

7 / 10
HIGH
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L

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.

Basic Information

ID CVE-2025-47907
Source Go
Published Aug 7, 2025 at 15:25
Modified Aug 7, 2025 at 15:48

Affected Product

Vendor Go standard library
Product database/sql
Affected Versions Go standard library database/sql 0
Go standard library database/sql 1.24.0

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.