Cancelling a query (e.g. by cancelling the context passed...
High severity
Unreviewed
Published
Aug 7, 2025
to the GitHub Advisory Database
•
Updated Aug 7, 2025
Description
Published by the National Vulnerability Database
Aug 7, 2025
Published to the GitHub Advisory Database
Aug 7, 2025
Last updated
Aug 7, 2025
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.
References