| { |
| "dataType": "CVE_RECORD", |
| "dataVersion": "5.0", |
| "cveMetadata": { |
| "cveId": "CVE-2025-47907" |
| }, |
| "containers": { |
| "cna": { |
| "providerMetadata": { |
| "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc" |
| }, |
| "title": "Incorrect results returned from Rows.Scan in database/sql", |
| "descriptions": [ |
| { |
| "lang": "en", |
| "value": "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." |
| } |
| ], |
| "affected": [ |
| { |
| "vendor": "Go standard library", |
| "product": "database/sql", |
| "collectionURL": "https://pkg.go.dev", |
| "packageName": "database/sql", |
| "versions": [ |
| { |
| "version": "0", |
| "lessThan": "1.23.12", |
| "status": "affected", |
| "versionType": "semver" |
| }, |
| { |
| "version": "1.24.0", |
| "lessThan": "1.24.6", |
| "status": "affected", |
| "versionType": "semver" |
| } |
| ], |
| "programRoutines": [ |
| { |
| "name": "Rows.Scan" |
| }, |
| { |
| "name": "Row.Scan" |
| } |
| ], |
| "defaultStatus": "unaffected" |
| } |
| ], |
| "problemTypes": [ |
| { |
| "descriptions": [ |
| { |
| "lang": "en", |
| "description": "CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')" |
| } |
| ] |
| } |
| ], |
| "references": [ |
| { |
| "url": "https://go.dev/cl/693735" |
| }, |
| { |
| "url": "https://go.dev/issue/74831" |
| }, |
| { |
| "url": "https://groups.google.com/g/golang-announce/c/x5MKroML2yM" |
| }, |
| { |
| "url": "https://pkg.go.dev/vuln/GO-2025-3849" |
| } |
| ], |
| "credits": [ |
| { |
| "lang": "en", |
| "value": "Spike Curtis from Coder" |
| } |
| ] |
| } |
| } |
| } |