{"id":"CVE-2025-47907","published":"2025-08-07T15:25:30Z","modified":"2025-11-04T21:10:56Z","title":"Incorrect results returned from Rows.Scan in database/sql","vendor":"Go standard library","product":"database/sql","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00437,"percentile":0.38822,"provenance":"source"},"cwes":[],"references":[{"url":"https://go.dev/cl/693735","tags":[]},{"url":"https://go.dev/issue/74831","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/x5MKroML2yM","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2025-3849","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2025/08/06/1","tags":[]}],"priority":{"score":12.7,"factors":[{"name":"EPSS percentile","points":7.76},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"go-standard-library","affectedVersions":[{"vendor":"Go standard library","product":"database/sql","versions":["< 1.23.12",">= 1.24.0, < 1.24.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-08-07T15:45:26.297503Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.23.12",">=1.24.0, <1.24.6"],"patched":["1.23.12","1.24.6"],"from":["GO-2025-3849"],"provenance":"source"}],"summary":{"text":"The Go standard library's database/sql package contains a race condition in Rows.Scan: cancelling a query's context while Scan is running, with other queries running in parallel, can cause the results to be overwritten with those of another query. An attacker with network access and no privileges or user interaction could trigger this by exploiting a high-complexity condition, which may lead to a Scan call returning another query's data or an error.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:36Z"},"euvd":{"id":"EUVD-2025-23921","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-0913","published":"2025-06-11","fixed":"1.24.4","kev":false,"link":{"from":"CVE-2025-0913","to":"CVE-2025-47907","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.23.10","toFixed":"1.23.12","daysApart":57}]}},{"cve":"CVE-2025-22874","published":"2025-06-11","fixed":"1.24.4","kev":false},{"cve":"CVE-2025-4673","published":"2025-06-11","fixed":"1.24.4","kev":false},{"cve":"CVE-2025-47906","published":"2025-09-18","fixed":"1.24.6","kev":false},{"cve":"CVE-2025-47907","published":"2025-08-07","fixed":"1.24.6","kev":false},{"cve":"CVE-2025-47910","published":"2025-09-22","fixed":"1.25.1","kev":false},{"cve":"CVE-2025-47912","published":"2025-10-29","fixed":"1.25.2","kev":false},{"cve":"CVE-2025-58183","published":"2025-10-29","fixed":"1.25.2","kev":false}],"package":"Go:stdlib"}}