{"id":"CVE-2025-47907","summary":"Incorrect results returned from Rows.Scan in database/sql","details":"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.","aliases":["BIT-golang-2025-47907","GO-2025-3849"],"modified":"2026-05-18T05:58:08.381166395Z","published":"2025-08-07T15:25:30.704Z","related":["ALSA-2025:20909","ALSA-2025:20983","CGA-hp7c-8j96-c7mq","SUSE-SU-2025:02759-1","SUSE-SU-2025:02760-1","SUSE-SU-2025:02812-1","SUSE-SU-2025:02837-1","SUSE-SU-2025:02912-1","SUSE-SU-2025:02924-1","SUSE-SU-2025:03115-1","SUSE-SU-2025:03158-1","SUSE-SU-2025:03159-1","SUSE-SU-2025:03161-1","SUSE-SU-2026:0297-1","SUSE-SU-2026:0298-1","openSUSE-SU-2025:15420-1","openSUSE-SU-2025:15422-1","openSUSE-SU-2025:15423-1","openSUSE-SU-2025:15424-1","openSUSE-SU-2025:15464-1","openSUSE-SU-2025:15465-1","openSUSE-SU-2025:15466-1","openSUSE-SU-2025:15594-1","openSUSE-SU-2025:15823-1"],"database_specific":{"cna_assigner":"Go","unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"fixed":"1.23.12"},{"introduced":"1.24.0"},{"fixed":"1.24.6"}]}],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/47xxx/CVE-2025-47907.json"},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2025/08/06/1"},{"type":"WEB","url":"https://go.dev/cl/693735"},{"type":"WEB","url":"https://go.dev/issue/74831"},{"type":"WEB","url":"https://groups.google.com/g/golang-announce/c/x5MKroML2yM"},{"type":"WEB","url":"https://pkg.go.dev"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2025-3849"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/47xxx/CVE-2025-47907.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-47907"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/golang/go","events":[{"introduced":"0"},{"fixed":"dd8b7ad9268c2fbde675132a41b4e4da02eef94d"},{"introduced":"3901409b5d0fb7c85a3e6730a59943cc93b2835c"},{"fixed":"7f36edc26d4e3becb6d9c9008ff00f260bb19055"}],"database_specific":{"source":"CPE_FIELD","cpe":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"1.23.12"},{"introduced":"1.24.0"},{"fixed":"1.24.6"}]}}],"versions":["go1.24.5","go1.23.11","go1.23.10","go1.24.4","go1.23.9","go1.24.3","go1.23.8","go1.24.2","go1.23.7","go1.24.1","go1.23.6","go1.24.0","go1.23.5","go1.23.4","go1.23.3","go1.23.2","go1.23.1","go1.23.0","go1.23rc2","go1.23rc1","go1.19beta1","go1.18beta2","go1.18beta1","go1.17beta1","go1.16beta1","go1.15beta1","go1.14beta1","go1.13beta1","go1.12beta2","go1.12beta1","go1.11beta3","go1.11beta2","go1.11beta1","go1.10rc2","go1.10rc1","go1.10beta2","go1.10beta1","go1.9beta2","go1.9beta1","go1.8beta2","go1.8beta1","go1.7rc4","go1.7rc3","go1.7rc2","go1.7rc1","go1.7beta2","go1.7beta1","go1.6beta2","go1.6beta1","go1.5beta3","go1.5beta2","go1.5beta1","go1.4beta1","go1.3beta2","go1.3beta1","weekly.2012-03-27","weekly","weekly.2012-03-22","weekly.2012-03-13","weekly.2012-03-04","weekly.2012-02-22","weekly.2012-02-14","weekly.2012-02-07","weekly.2012-01-27","weekly.2012-01-20","weekly.2012-01-15","weekly.2011-12-22","weekly.2011-12-14","weekly.2011-12-06","weekly.2011-12-02","weekly.2011-12-01","weekly.2011-11-18","weekly.2011-11-09","weekly.2011-11-08","weekly.2011-11-02","weekly.2011-11-01","weekly.2011-10-26","weekly.2011-10-25","weekly.2011-10-18","weekly.2011-10-06","weekly.2011-09-21","weekly.2011-09-16","weekly.2011-08-17","weekly.2011-09-07","weekly.2011-09-01","weekly.2011-08-10","weekly.2011-07-07","weekly.2011-07-29","weekly.2011-07-19","weekly.2011-06-09","weekly.2011-06-23","weekly.2011-06-16","weekly.2011-06-02","weekly.2011-05-22","weekly.2011-04-27","weekly.2011-04-13","weekly.2011-04-04","weekly.2011-03-28","weekly.2011-03-15","weekly.2011-03-07.1","release.r56","weekly.2011-03-07","weekly.2011-02-24","weekly.2011-02-15","weekly.2011-02-01.1","weekly.2011-02-01","weekly.2011-01-20","weekly.2011-01-19","weekly.2011-01-12","weekly.2011-01-06","weekly.2010-12-22","weekly.2010-12-15.1","weekly.2010-12-15","weekly.2010-12-08","weekly.2010-12-02","weekly.2010-11-23","weekly.2010-11-10","weekly.2010-11-02","weekly.2010-10-27","weekly.2010-10-20","weekly.2010-10-13.1","weekly.2010-10-13","weekly.2010-09-29","weekly.2010-09-22","weekly.2010-09-15","weekly.2010-09-06","weekly.2010-08-25","weekly.2010-08-11","weekly.2010-08-04","weekly.2010-07-29","weekly.2010-07-14","weekly.2010-07-01","weekly.2010-06-21","weekly.2010-06-09","weekly.2010-05-27","weekly.2010-05-04","weekly.2010-04-27","weekly.2010-04-13","weekly.2010-03-30","weekly.2010-03-22","weekly.2010-03-15","weekly.2010-03-04","weekly.2010-02-23","weekly.2010-02-17","weekly.2010-02-04","weekly.2010-01-27","weekly.2010-01-13","weekly.2010-01-05","weekly.2009-12-22","weekly.2009-12-09","weekly.2009-12-07","weekly.2009-11-17","weekly.2009-11-12","weekly.2009-11-10.1","weekly.2009-11-10","weekly.2009-11-06"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-47907.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L"}]}