CVEfocus › CVE database › CVE-2025-47907

CVE-2025-47907Incorrect results returned from Rows.Scan in database/sql

CVSS 7.0 HighEPSS 0.5% (higher than 35% of CVEs)Published 2025-08-07Updated 2025-11-04Assigner: Go

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

42Fixed
43Fix pending
2Will not fix
6Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04golang-1.23Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 26.04golang-1.24Not affected
vulnerable_code_not_present
Ubuntu 26.04golang-1.25Not affected
vulnerable_code_not_present
Ubuntu 25.10golang-1.23Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-47907
Ubuntu 25.10golang-1.24Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-47907
Ubuntu 25.10golang-1.25Not affected
vulnerable_code_not_present
Ubuntu 24.04golang-1.21Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 24.04golang-1.22Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 24.04golang-1.23Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 24.04golang-1.24Not affected
vulnerable_code_not_present
Ubuntu 24.04golang-1.25Not affected
vulnerable_code_not_present
Ubuntu 22.04golang-1.13Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 22.04golang-1.17Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 22.04golang-1.18Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 22.04golang-1.20Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 22.04golang-1.21Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 22.04golang-1.22Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 22.04golang-1.23Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 22.04golang-1.24Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 22.04golang-1.25Not affected
vulnerable_code_not_present
Ubuntu 20.04golang-1.13Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 20.04golang-1.14Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 20.04golang-1.16Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 20.04golang-1.18Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 20.04golang-1.20Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 20.04golang-1.21Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 20.04golang-1.22Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 18.04golang-1.13Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 18.04golang-1.16Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 18.04golang-1.18Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 16.04golang-1.13Fix pendingUBUNTU-CVE-2025-47907
Ubuntu 16.04golang-1.18Fix pendingUBUNTU-CVE-2025-47907
Debian 13golang-1.24Fix pendingDEBIAN-CVE-2025-47907
Debian 12golang-1.19Fix pendingDEBIAN-CVE-2025-47907
Red Hat Enterprise Linux 10go-toolsetFixed0:1.24.6-1.el10_0RHSA-2025:13941
Red Hat Enterprise Linux 10golangFixed0:1.24.6-1.el10_0RHSA-2025:13941
Red Hat Enterprise Linux 10golang-binFixed0:1.24.6-1.el10_0RHSA-2025:13941
Red Hat Enterprise Linux 10golang-docsFixed0:1.24.6-1.el10_0RHSA-2025:13941
Red Hat Enterprise Linux 10golang-miscFixed0:1.24.6-1.el10_0RHSA-2025:13941
Red Hat Enterprise Linux 10golang-raceFixed0:1.24.6-1.el10_0RHSA-2025:13941
Red Hat Enterprise Linux 10golang-srcFixed0:1.24.6-1.el10_0RHSA-2025:13941
Red Hat Enterprise Linux 10golang-testsFixed0:1.24.6-1.el10_0RHSA-2025:13941
Red Hat Enterprise Linux 10podmanFixed7:5.6.0-5.el10_1RHSA-2025:20983
Red Hat Enterprise Linux 10podman-dockerFixed7:5.6.0-5.el10_1RHSA-2025:20983
Red Hat Enterprise Linux 10podman-remoteFixed7:5.6.0-5.el10_1RHSA-2025:20983
Red Hat Enterprise Linux 10podman-testsFixed7:5.6.0-5.el10_1RHSA-2025:20983
Red Hat Enterprise Linux 9go-toolsetFixed0:1.24.6-1.el9_6RHSA-2025:13935
Red Hat Enterprise Linux 9golangFixed0:1.24.6-1.el9_6RHSA-2025:13935
Red Hat Enterprise Linux 9golang-binFixed0:1.24.6-1.el9_6RHSA-2025:13935
Red Hat Enterprise Linux 9golang-docsFixed0:1.24.6-1.el9_6RHSA-2025:13935
Red Hat Enterprise Linux 9golang-miscFixed0:1.24.6-1.el9_6RHSA-2025:13935
Red Hat Enterprise Linux 9golang-raceFixed0:1.24.6-1.el9_6RHSA-2025:13935
Red Hat Enterprise Linux 9golang-srcFixed0:1.24.6-1.el9_6RHSA-2025:13935
Red Hat Enterprise Linux 9golang-testsFixed0:1.24.6-1.el9_6RHSA-2025:13935
Red Hat Enterprise Linux 9podmanFixed6:5.6.0-6.el9_7RHSA-2025:20909
Red Hat Enterprise Linux 9podman-dockerFixed6:5.6.0-6.el9_7RHSA-2025:20909
Red Hat Enterprise Linux 9podman-pluginsFixed6:5.6.0-6.el9_7RHSA-2025:20909
Red Hat Enterprise Linux 9podman-remoteFixed6:5.6.0-6.el9_7RHSA-2025:20909
Red Hat Enterprise Linux 9podman-testsFixed6:5.6.0-6.el9_7RHSA-2025:20909
Red Hat Enterprise Linux 8delveFix pending
Affected
Red Hat Enterprise Linux 8go-toolsetFix pending
Affected
Red Hat Enterprise Linux 8golangFix pending
Affected
Red Hat Enterprise Linux 8golang-binFix pending
Affected
Red Hat Enterprise Linux 8golang-docsFix pending
Affected
Red Hat Enterprise Linux 8golang-miscFix pending
Affected
Red Hat Enterprise Linux 8golang-raceFix pending
Affected
Red Hat Enterprise Linux 8golang-srcFix pending
Affected
Red Hat Enterprise Linux 8golang-testsFix pending
Affected
Red Hat Enterprise Linux 8podmanFix pending
Affected
Red Hat Enterprise Linux 8podman-catatonitFix pending
Affected
Red Hat Enterprise Linux 8podman-dockerFix pending
Affected
Red Hat Enterprise Linux 8podman-gvproxyFix pending
Affected
Red Hat Enterprise Linux 8podman-manpagesFix pending
Affected
Red Hat Enterprise Linux 8podman-pluginsFix pending
Affected
Red Hat Enterprise Linux 8podman-remoteFix pending
Affected
Red Hat Enterprise Linux 8podman-testsFix pending
Affected
AlmaLinux 10golang-docsFixed1.24.6-1.el10_0.alma.1ALSA-2025:13941
AlmaLinux 10golang-miscFixed1.24.6-1.el10_0.alma.1ALSA-2025:13941
AlmaLinux 10golang-srcFixed1.24.6-1.el10_0.alma.1ALSA-2025:13941
AlmaLinux 10golang-testsFixed1.24.6-1.el10_0.alma.1ALSA-2025:13941
AlmaLinux 10podmanFixed7:5.6.0-5.el10_1ALSA-2025:20983
AlmaLinux 10podman-dockerFixed7:5.6.0-5.el10_1ALSA-2025:20983
AlmaLinux 10podman-remoteFixed7:5.6.0-5.el10_1ALSA-2025:20983
AlmaLinux 10podman-testsFixed7:5.6.0-5.el10_1ALSA-2025:20983
AlmaLinux 9podmanFixed6:5.6.0-6.el9_7ALSA-2025:20909
AlmaLinux 9podman-dockerFixed6:5.6.0-6.el9_7ALSA-2025:20909
AlmaLinux 9podman-pluginsFixed6:5.6.0-6.el9_7ALSA-2025:20909
AlmaLinux 9podman-remoteFixed6:5.6.0-6.el9_7ALSA-2025:20909
AlmaLinux 9podman-testsFixed6:5.6.0-6.el9_7ALSA-2025:20909
Alpine Linux 3.24goFixed1.24.6-r0ALPINE-CVE-2025-47907
Alpine Linux 3.23goFixed1.24.6-r0ALPINE-CVE-2025-47907
Alpine Linux 3.22goFixed1.24.6-r0ALPINE-CVE-2025-47907
Go librarystdlibFixed1.23.12GO-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.

References

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.