CVE-2025-47907
database/sql: Postgres Scan Race Condition
Overview
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.
Source: OX vulnerability database
Severity
7 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- Low
- Availability
- Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L
Weakness: CWE-362
Affected packages · 2
Operating systems · 1,098 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | golang | 0:1.24.6-1.azl3 |
Oracle Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 9 | podman +4 | 6:5.6.0-6.0.1.el9_7 |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 5.0 | go | 1.24.13-1.ph5 |
Red Hat 4 releases · 6 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 8 | rhceph-grafana-rhel9 +3 | affected | — |
| 8 (container-tools:rhel8) | podman +7 | affected | — |
| 8 (go-toolset:rhel8) | delve +8 | affected | — |
| 8 (go-toolset:rhel8) | go-toolset | 0:1.13.15-1.module+el8.2.0+7662+fa98b974 | RHSA-2025:21383 |
| 8 (go-toolset:rhel8) | golang +6 | 0:1.13.15-11.module+el8.2.0+23627+d458f451 | RHSA-2025:21383 |
| 8 (go-toolset:rhel8) | golang +6 | 0:1.15.14-16.module+el8.4.0+23635+6912b903 | RHSA-2025:21385 |
18 more rows
SUSE Linux Enterprise 4 releases · 7 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | go1-23-openssl +2 | 1.23.12-150000.1.18.1 | SUSE-SU-2025:02812-1 |
| 15.4 | go1-23 +2 | 1.23.12-150000.1.40.1 | SUSE-SU-2025:02759-1 |
| 15.4 | go1-24-openssl +2 | 1.24.6-150000.1.12.1 | SUSE-SU-2025:02837-1 |
| 15.4 | go1-24 +2 | 1.24.6-150000.1.32.1 | SUSE-SU-2025:02760-1 |
| 15.4 | go1-25-openssl +2 | 1.25.0-150000.1.3.1 | SUSE-SU-2025:03115-1 |
| 15.4 | go1-25 +2 | 1.25.0-150000.1.5.1 | SUSE-SU-2025:02924-1 |
22 more rows
alma 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | golang-docs +3 | 1.24.6-1.el10_0.alma.1 |
| 9 | podman +4 | 6:5.6.0-6.el9_7 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | go | 1.24.6-r0 |
| 3.23 | go | 1.24.6-r0 |
| 3.24 | go | 1.24.6-r0 |
| edge | go | 1.24.6-r0 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | golang +6 | 1.24.6-1.amzn2023.0.1 |
chainguard 1 release · 575 packages
| Release | Package | Fixed in |
|---|---|---|
| actions-runner-controller-fips +502 | not affected | |
| qemu-guesthelper | 0.0.1-r4 | |
| pombump | 0.0.14-r3 | |
| local-path-provisioner-fips | 0.0.32-r1 | |
| sbom-scorecard | 0.0.7-r23 | |
| sbom-convert | 0.0.7-r4 |
569 more rows
debian 4 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | golang-1-15 | affected |
| 12 | golang-1-19 | affected |
| 13 | golang-1-23 +1 | affected |
| 14 | golang-1-24 | 1.24.7-1 |
echo 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| golang-1-19 | affected | |
| golang-1-24 | 1.24.6 |
minimos 1 release · 111 packages
| Release | Package | Fixed in |
|---|---|---|
| pombump | 0.0.14-r3 | |
| falcoctl | 0.11.2-r3 | |
| ollama | 0.11.4-r0 | |
| cue | 0.14.0-r1 | |
| configmap-reload | 0.15.0-r1 | |
| external-secrets-operator | 0.19.1-r0 |
105 more rows
openSUSE 1 release · 9 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | govulncheck-vulndb | 0.0.20250807T150727-1.1 | openSUSE-SU-2025:15424-1 |
| Tumbleweed | go1-23 +3 | 1.23.12-1.1 | openSUSE-SU-2025:15422-1 |
| Tumbleweed | go1-24 +3 | 1.24.6-1.1 | openSUSE-SU-2025:15423-1 |
| Tumbleweed | go1-25 +3 | 1.25rc3-1.1 | openSUSE-SU-2025:15420-1 |
| Tumbleweed | polaris +3 | 10.1.1-1.1 | openSUSE-SU-2025:15466-1 |
| Tumbleweed | azure-storage-azcopy | 10.30.1-1.1 | openSUSE-SU-2025:15594-1 |
3 more rows
root.io debian 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-golang-1-19 | affected |
| 13 | golang-1-24 +1 | 1.24.4-1.root.io.12 |
ubuntu 5 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | golang-1-13 +2 | affected |
| 20.04-ESM | golang-1-13 +6 | affected |
| 22.04 | golang-1-13 +7 | affected |
| 24.04 | golang-1-21 +2 | affected |
| 26.04 | golang-1-23 | affected |
wolfi 1 release · 328 packages
| Release | Package | Fixed in |
|---|---|---|
| addon-resizer +202 | not affected | |
| pombump | 0.0.14-r3 | |
| sbom-scorecard | 0.0.7-r23 | |
| sbom-convert | 0.0.7-r4 | |
| harbor-cli | 0.0.8-r2 | |
| promxy | 0.0.93-r3 |
322 more rows
References
- www.openwall.com http://www.openwall.com/lists/oss-security/2025/08/06/1
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:20909
- access.redhat.com https://access.redhat.com/security/cve/CVE-2025-47907
- bugzilla.redhat.com https://bugzilla.redhat.com/2387083
- bugzilla.redhat.com https://bugzilla.redhat.com/2393152
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2025-20909.html
- github.com https://github.com/golang/go/commit/83b4a5db240960720e51b7d5a6da1f399bd868ee (go1.24.6)
- github.com https://github.com/golang/go/commit/8a924caaf348fdc366bab906424616b2974ad4e9 (go1.23.12)
- github.com https://github.com/golang/go/issues/74831
- go.dev https://go.dev/cl/693735
Show all 18 references
- go.dev https://go.dev/issue/74831
- groups.google.com https://groups.google.com/g/golang-announce/c/x5MKroML2yM
- groups.google.com https://groups.google.com/g/golang-announce/c/x5MKroML2yM/m/5_v-oMjUAgAJ
- linux.oracle.com https://linux.oracle.com/cve/CVE-2025-47907.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2025-20983.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2025-47907
- pkg.go.dev https://pkg.go.dev/vuln/GO-2025-3849
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2025-47907
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.