CVE-2025-47907Incorrect results returned from Rows.Scan in database/sql
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Go, Red Hat: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | golang-1.23 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 26.04 | golang-1.24 | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | golang-1.25 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | golang-1.23 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-47907 | |
| Ubuntu 25.10 | golang-1.24 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-47907 | |
| Ubuntu 25.10 | golang-1.25 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | golang-1.21 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 24.04 | golang-1.22 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 24.04 | golang-1.23 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 24.04 | golang-1.24 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | golang-1.25 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 22.04 | golang-1.17 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 22.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 22.04 | golang-1.20 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 22.04 | golang-1.21 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 22.04 | golang-1.22 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 22.04 | golang-1.23 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 22.04 | golang-1.24 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 22.04 | golang-1.25 | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 20.04 | golang-1.14 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 20.04 | golang-1.16 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 20.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 20.04 | golang-1.20 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 20.04 | golang-1.21 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 20.04 | golang-1.22 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 18.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 18.04 | golang-1.16 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 18.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 16.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Ubuntu 16.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2025-47907 | |
| Debian 13 | golang-1.24 | Fix pending | DEBIAN-CVE-2025-47907 | |
| Debian 12 | golang-1.19 | Fix pending | DEBIAN-CVE-2025-47907 | |
| Red Hat Enterprise Linux 10 | go-toolset | Fixed | 0:1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux 10 | golang | Fixed | 0:1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux 10 | golang-bin | Fixed | 0:1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux 10 | golang-docs | Fixed | 0:1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux 10 | golang-misc | Fixed | 0:1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux 10 | golang-race | Fixed | 0:1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux 10 | golang-src | Fixed | 0:1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux 10 | golang-tests | Fixed | 0:1.24.6-1.el10_0 | RHSA-2025:13941 |
| Red Hat Enterprise Linux 10 | podman | Fixed | 7:5.6.0-5.el10_1 | RHSA-2025:20983 |
| Red Hat Enterprise Linux 10 | podman-docker | Fixed | 7:5.6.0-5.el10_1 | RHSA-2025:20983 |
| Red Hat Enterprise Linux 10 | podman-remote | Fixed | 7:5.6.0-5.el10_1 | RHSA-2025:20983 |
| Red Hat Enterprise Linux 10 | podman-tests | Fixed | 7:5.6.0-5.el10_1 | RHSA-2025:20983 |
| Red Hat Enterprise Linux 9 | go-toolset | Fixed | 0:1.24.6-1.el9_6 | RHSA-2025:13935 |
| Red Hat Enterprise Linux 9 | golang | Fixed | 0:1.24.6-1.el9_6 | RHSA-2025:13935 |
| Red Hat Enterprise Linux 9 | golang-bin | Fixed | 0:1.24.6-1.el9_6 | RHSA-2025:13935 |
| Red Hat Enterprise Linux 9 | golang-docs | Fixed | 0:1.24.6-1.el9_6 | RHSA-2025:13935 |
| Red Hat Enterprise Linux 9 | golang-misc | Fixed | 0:1.24.6-1.el9_6 | RHSA-2025:13935 |
| Red Hat Enterprise Linux 9 | golang-race | Fixed | 0:1.24.6-1.el9_6 | RHSA-2025:13935 |
| Red Hat Enterprise Linux 9 | golang-src | Fixed | 0:1.24.6-1.el9_6 | RHSA-2025:13935 |
| Red Hat Enterprise Linux 9 | golang-tests | Fixed | 0:1.24.6-1.el9_6 | RHSA-2025:13935 |
| Red Hat Enterprise Linux 9 | podman | Fixed | 6:5.6.0-6.el9_7 | RHSA-2025:20909 |
| Red Hat Enterprise Linux 9 | podman-docker | Fixed | 6:5.6.0-6.el9_7 | RHSA-2025:20909 |
| Red Hat Enterprise Linux 9 | podman-plugins | Fixed | 6:5.6.0-6.el9_7 | RHSA-2025:20909 |
| Red Hat Enterprise Linux 9 | podman-remote | Fixed | 6:5.6.0-6.el9_7 | RHSA-2025:20909 |
| Red Hat Enterprise Linux 9 | podman-tests | Fixed | 6:5.6.0-6.el9_7 | RHSA-2025:20909 |
| Red Hat Enterprise Linux 8 | delve | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | go-toolset | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | golang | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | golang-bin | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | golang-docs | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | golang-misc | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | golang-race | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | golang-src | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | golang-tests | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-catatonit | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-docker | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-gvproxy | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-manpages | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-plugins | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-remote | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-tests | Fix pending Affected | ||
| AlmaLinux 10 | golang-docs | Fixed | 1.24.6-1.el10_0.alma.1 | ALSA-2025:13941 |
| AlmaLinux 10 | golang-misc | Fixed | 1.24.6-1.el10_0.alma.1 | ALSA-2025:13941 |
| AlmaLinux 10 | golang-src | Fixed | 1.24.6-1.el10_0.alma.1 | ALSA-2025:13941 |
| AlmaLinux 10 | golang-tests | Fixed | 1.24.6-1.el10_0.alma.1 | ALSA-2025:13941 |
| AlmaLinux 10 | podman | Fixed | 7:5.6.0-5.el10_1 | ALSA-2025:20983 |
| AlmaLinux 10 | podman-docker | Fixed | 7:5.6.0-5.el10_1 | ALSA-2025:20983 |
| AlmaLinux 10 | podman-remote | Fixed | 7:5.6.0-5.el10_1 | ALSA-2025:20983 |
| AlmaLinux 10 | podman-tests | Fixed | 7:5.6.0-5.el10_1 | ALSA-2025:20983 |
| AlmaLinux 9 | podman | Fixed | 6:5.6.0-6.el9_7 | ALSA-2025:20909 |
| AlmaLinux 9 | podman-docker | Fixed | 6:5.6.0-6.el9_7 | ALSA-2025:20909 |
| AlmaLinux 9 | podman-plugins | Fixed | 6:5.6.0-6.el9_7 | ALSA-2025:20909 |
| AlmaLinux 9 | podman-remote | Fixed | 6:5.6.0-6.el9_7 | ALSA-2025:20909 |
| AlmaLinux 9 | podman-tests | Fixed | 6:5.6.0-6.el9_7 | ALSA-2025:20909 |
| Alpine Linux 3.24 | go | Fixed | 1.24.6-r0 | ALPINE-CVE-2025-47907 |
| Alpine Linux 3.23 | go | Fixed | 1.24.6-r0 | ALPINE-CVE-2025-47907 |
| Alpine Linux 3.22 | go | Fixed | 1.24.6-r0 | ALPINE-CVE-2025-47907 |
| Go library | stdlib | Fixed | 1.23.12 | GO-2025-3849 |
What the vendor says
As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Go standard library database/sql: affected: before 1.23.12, 1.24.0 to before 1.24.6; fixed in
1.23.12,1.24.6
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.