{"id":"CVE-2025-47907","state":"PUBLISHED","title":"Incorrect results returned from Rows.Scan in database/sql","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.","publishedAt":"2025-08-07T15:25:30.704Z","updatedAt":"2025-11-04T21:10:56.083Z","severity":{"score":7,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","source":"CISA-ADP"},"assigner":"Go","products":["Go standard library database/sql"],"affected":[{"vendor":"Go standard library","product":"database/sql","packageName":"database/sql","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.23.12","versionType":"semver"},{"version":"1.24.0","status":"affected","lessThan":"1.24.6","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"Rows.Scan"},{"name":"Row.Scan"}]}],"references":["https://go.dev/cl/693735","https://go.dev/issue/74831","https://groups.google.com/g/golang-announce/c/x5MKroML2yM","https://pkg.go.dev/vuln/GO-2025-3849","http://www.openwall.com/lists/oss-security/2025/08/06/1"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:23.771Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/47xxx/CVE-2025-47907.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-47907","state":"PUBLISHED","datePublished":"2025-08-07T15:25:30.704Z","dateUpdated":"2025-11-04T21:10:56.083Z","assignerShortName":"Go","assignerOrgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateReserved":"2025-05-13T23:31:29.597Z"},"containers":{"cna":{"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","packageName":"database/sql","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.23.12","versionType":"semver"},{"version":"1.24.0","status":"affected","lessThan":"1.24.6","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"Rows.Scan"},{"name":"Row.Scan"}]}],"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"}],"problemTypes":[{"descriptions":[{"lang":"en","description":"CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')"}]}],"providerMetadata":{"shortName":"Go","orgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateUpdated":"2025-08-07T15:25:30.704Z"},"credits":[{"lang":"en","value":"Spike Curtis from Coder"}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","integrityImpact":"LOW","userInteraction":"NONE","attackComplexity":"HIGH","availabilityImpact":"LOW","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-08-07T15:45:26.297503Z","id":"CVE-2025-47907","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-08-07T15:48:03.634Z"}},{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2025/08/06/1"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-04T21:10:56.083Z"}}]}}}