Vulnerability · Published Aug 7, 2025 · Assigned by Go
CVE-2025-47907Incorrect results returned from Rows.Scan in database/sql
High 7.0
In plain English
A high-severity security flaw in database/sql from Go standard library. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | golang-docs | 1.24.6-1.el10_0.alma.1 | ALSA-2025:13941 |
| AlmaLinux:10 | golang-misc | 1.24.6-1.el10_0.alma.1 | ALSA-2025:13941 |
| AlmaLinux:10 | golang-src | 1.24.6-1.el10_0.alma.1 | ALSA-2025:13941 |
| AlmaLinux:10 | golang-tests | 1.24.6-1.el10_0.alma.1 | ALSA-2025:13941 |
| AlmaLinux:10 | podman | 7:5.6.0-5.el10_1 | ALSA-2025:20983 |
| AlmaLinux:9 | podman | 6:5.6.0-6.el9_7 | ALSA-2025:20909 |
| AlmaLinux:10 | podman-docker | 7:5.6.0-5.el10_1 | ALSA-2025:20983 |
| AlmaLinux:9 | podman-docker | 6:5.6.0-6.el9_7 | ALSA-2025:20909 |
| AlmaLinux:9 | podman-plugins | 6:5.6.0-6.el9_7 | ALSA-2025:20909 |
| AlmaLinux:10 | podman-remote | 7:5.6.0-5.el10_1 | ALSA-2025:20983 |
| AlmaLinux:9 | podman-remote | 6:5.6.0-6.el9_7 | ALSA-2025:20909 |
| AlmaLinux:10 | podman-tests | 7:5.6.0-5.el10_1 | ALSA-2025:20983 |
| AlmaLinux:9 | podman-tests | 6:5.6.0-6.el9_7 | ALSA-2025:20909 |
| Alpine:v3.22 | go | 1.24.6-r0 | ALPINE-CVE-2025-47907 |
| Alpine:v3.23 | go | 1.24.6-r0 | ALPINE-CVE-2025-47907 |
| Alpine:v3.24 | go | 1.24.6-r0 | ALPINE-CVE-2025-47907 |
| Debian:12 | golang-1.19 | no fix listed | DEBIAN-CVE-2025-47907 |
| Debian:13 | golang-1.24 | no fix listed | DEBIAN-CVE-2025-47907 |
| Go | stdlib | 1.23.12, 1.24.6 | GO-2025-3849 |
| Ubuntu:22.04:LTS | golang-1.17 | no fix listed | UBUNTU-CVE-2025-47907 |
| Ubuntu:22.04:LTS | golang-1.18 | no fix listed | UBUNTU-CVE-2025-47907 |
| Ubuntu:22.04:LTS | golang-1.20 | no fix listed | UBUNTU-CVE-2025-47907 |
| Ubuntu:22.04:LTS | golang-1.21 | no fix listed | UBUNTU-CVE-2025-47907 |
| Ubuntu:24.04:LTS | golang-1.21 | no fix listed | UBUNTU-CVE-2025-47907 |
| Ubuntu:22.04:LTS | golang-1.22 | no fix listed | UBUNTU-CVE-2025-47907 |
| Ubuntu:24.04:LTS | golang-1.22 | no fix listed | UBUNTU-CVE-2025-47907 |
| Ubuntu:22.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2025-47907 |
| Ubuntu:24.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2025-47907 |
| Ubuntu:25.10 | golang-1.23 | no fix listed | UBUNTU-CVE-2025-47907 |
| Ubuntu:26.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2025-47907 |
| Ubuntu:22.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2025-47907 |
| Ubuntu:24.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2025-47907 |
| Ubuntu:25.10 | golang-1.24 | no fix listed | UBUNTU-CVE-2025-47907 |
| Ubuntu:22.04:LTS | golang-1.25 | no fix listed | UBUNTU-CVE-2025-47907 |
| Ubuntu:24.04:LTS | golang-1.25 | no fix listed | UBUNTU-CVE-2025-47907 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Go standard library | database/sql | 0 – before 1.23.121.24.0 – before 1.24.6 |