cve.bz

CVE-2025-47907 golang go: Race Condition

7.0 highEPSS 0.4%Fix available

High (7.0) in golang go. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.23.12, 1.24.6.

On this page
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.

Severity

CVSS 3.1

7.0 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 39th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-08-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-47907 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-47907?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-47907?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-47907 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go standard library database/sqlbefore 1.23.12
Go standard library database/sqlfrom 1.24.0 before 1.24.6

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2025-3849Gostdlib<1.23.12
>=1.24.0 <1.24.6
1.23.12, 1.24.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-1.19no fix listedDEBIAN-CVE-2025-47907
Debian13golang-1.24no fix listedDEBIAN-CVE-2025-47907
Ubuntu20.04:LTSgolang-1.13, golang-1.14, golang-1.18 and 3 moreno fix listedUBUNTU-CVE-2025-47907
Ubuntu22.04:LTSgolang-1.17, golang-1.18, golang-1.20 and 4 moreno fix listedUBUNTU-CVE-2025-47907
Ubuntu24.04:LTSgolang-1.21, golang-1.22, golang-1.23no fix listedUBUNTU-CVE-2025-47907
Ubuntu25.10golang-1.23, golang-1.24no fix listedUBUNTU-CVE-2025-47907
Ubuntu26.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2025-47907
UbuntuPro:16.04:LTSgolang-1.13, golang-1.18no fix listedUBUNTU-CVE-2025-47907
UbuntuPro:18.04:LTSgolang-1.13, golang-1.16, golang-1.18no fix listedUBUNTU-CVE-2025-47907
UbuntuPro:20.04:LTSgolang-1.16no fix listedUBUNTU-CVE-2025-47907
UbuntuPro:22.04:LTSgolang-1.13no fix listedUBUNTU-CVE-2025-47907
Red Hatenterprise_linux:9::appstreamgolang, go-toolset, golang-bin and 5 more0:1.24.6-1.el9_6RHSA-2025:13935
Red Hatenterprise_linux:9::appstreampodman, podman-tests, podman-docker and 7 more6:5.6.0-6.el9_7RHSA-2025:20909
Red Hatenterprise_linux:10.0golang, go-toolset, golang-bin and 5 more0:1.24.6-1.el10_0RHSA-2025:13941
Red Hatenterprise_linux:10.1podman, podman-tests, podman-docker and 5 more7:5.6.0-5.el10_1RHSA-2025:20983
Red Hatrhel_aus:8.2::appstreamdelve, delve-debuginfo, delve-debugsource0:1.3.2-3.module+el8.2.0+5581+896cb53eRHSA-2025:21383
Red Hatrhel_aus:8.2::appstreamgo-toolset0:1.13.15-1.module+el8.2.0+7662+fa98b974RHSA-2025:21383
Red Hatrhel_aus:8.2::appstreamgolang, golang-bin, golang-src and 4 more0:1.13.15-11.module+el8.2.0+23627+d458f451RHSA-2025:21383
Red Hatrhel_aus:8.4::appstreamdelve, delve-debuginfo, delve-debugsource0:1.5.0-2.module+el8.4.0+8864+58b0fcdbRHSA-2025:21385
Red Hatrhel_aus:8.4::appstreamgo-toolset0:1.15.14-3.module+el8.4.0+22765+91da4d3fRHSA-2025:21385
Red Hatrhel_aus:8.4::appstreamgolang, golang-bin, golang-src and 4 more0:1.15.14-16.module+el8.4.0+23635+6912b903RHSA-2025:21385
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamdelve, delve-debuginfo, delve-debugsource0:1.7.2-1.module+el8.6.0+12972+ebab5911RHSA-2025:21384
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamgo-toolset0:1.17.13-2.module+el8.6.0+22782+bd95fb4cRHSA-2025:21384
9 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 morego1.231.23.12-150000.1.40.1SUSE-SU-2025:02759-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 morego1.241.24.6-150000.1.32.1SUSE-SU-2025:02760-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 morego1.251.25.0-150000.1.5.1SUSE-SU-2025:02924-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 9 morego1.23-openssl1.23.12-150000.1.18.1SUSE-SU-2025:02812-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 9 morego1.24-openssl1.24.6-150000.1.12.1SUSE-SU-2025:02837-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 9 morego1.25-openssl1.25.0-150000.1.3.1SUSE-SU-2025:03115-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morego1.25-openssl1.25.6-150000.1.9.1SUSE-SU-2026:0297-1
SUSELinux Enterprise Module for Development Tools 15 SP6, Linux Enterprise Module for Development Tools 15 SP7go1.23-openssl1.23.12-150600.13.9.1SUSE-SU-2025:03159-1
SUSELinux Enterprise Module for Development Tools 15 SP6, Linux Enterprise Module for Development Tools 15 SP7go1.24-openssl1.24.6-150600.13.9.1SUSE-SU-2025:03158-1
SUSELinux Enterprise Module for Development Tools 15 SP6, Linux Enterprise Module for Development Tools 15 SP7go1.25-openssl1.25.0-150600.13.3.1SUSE-SU-2025:03161-1
SUSELinux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6go1.25-openssl1.25.6-150600.13.9.1SUSE-SU-2026:0298-1
SUSELinux Enterprise Module for Package Hub 15 SP6govulncheck-vulndb0.0.20250814T182633-150000.1.98.1SUSE-SU-2025:02912-1
1 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6go1.231.23.12-150000.1.40.1SUSE-SU-2025:02759-1
openSUSELeap 15.6go1.23-openssl1.23.12-150600.13.9.1SUSE-SU-2025:03159-1
openSUSELeap 15.6go1.241.24.6-150000.1.32.1SUSE-SU-2025:02760-1
openSUSELeap 15.6go1.24-openssl1.24.6-150600.13.9.1SUSE-SU-2025:03158-1
openSUSELeap 15.6go1.251.25.0-150000.1.5.1SUSE-SU-2025:02924-1
openSUSELeap 15.6go1.25-openssl1.25.0-150600.13.3.1SUSE-SU-2025:03161-1
openSUSELeap 15.6go1.25-openssl1.25.6-150600.13.9.1SUSE-SU-2026:0298-1
openSUSELeap 15.6govulncheck-vulndb0.0.20250814T182633-150000.1.98.1SUSE-SU-2025:02912-1
openSUSETumbleweedazure-storage-azcopy10.30.1-1.1openSUSE-SU-2025:15594-1
openSUSETumbleweedclair4.9.0-1.1openSUSE-SU-2025:15823-1
openSUSETumbleweedgo1.231.23.12-1.1openSUSE-SU-2025:15422-1
openSUSETumbleweedgo1.241.24.6-1.1openSUSE-SU-2025:15423-1
5 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux9podman, podman-tests, podman-docker and 2 more6:5.6.0-6.el9_7ALSA-2025:20909
AlmaLinux10golang-src, golang-docs, golang-misc and 1 more1.24.6-1.el10_0.alma.1ALSA-2025:13941
AlmaLinux10podman, podman-tests, podman-docker and 1 more7:5.6.0-5.el10_1ALSA-2025:20983
Alpinev3.22, v3.23, v3.24go1.24.6-r0ALPINE-CVE-2025-47907
Azure Linux2golang1.18.8-9AZL-66135
Azure Linux2golang1.22.7-5AZL-66138
Azure Linux3golang1.23.12-1AZL-66150
Azure Linux3golang1.24.6-1AZL-66153
Alpaquita23go1.23.12-r0BELL-CVE-2025-47907
Alpaquita25, streamgo1.24.6-r0BELL-CVE-2025-47907
BellSoft Hardened Containers23go1.23.12-r0BELL-CVE-2025-47907
BellSoft Hardened Containers25, streamgo1.24.6-r0BELL-CVE-2025-47907

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability marked as Moderate severity issues rather than Important. The os/exec LookPath flaw requires a misconfigured PATH to be exploitable, and the database/sql race condition primarily impacts applications that cancel queries while running multiple queries concurrently. Both can cause unexpected behavior, but the exploitation scope is limited and unlikely to result in direct compromise in most typical deployments.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Cryostat 4 on RHEL 9cryostat/cryostat-agent-init-rhel9:0.6.0-11Fixed 2025-11-25RHSA-2025:21148
Cryostat 4 on RHEL 9cryostat/cryostat-db-rhel9:4.1.0-11Fixed 2025-11-25RHSA-2025:21148
Cryostat 4 on RHEL 9cryostat/cryostat-grafana-dashboard-rhel9:4.1.0-11Fixed 2025-11-25RHSA-2025:21148
Cryostat 4 on RHEL 9cryostat/cryostat-openshift-console-plugin-rhel9:4.1.0-11Fixed 2025-11-25RHSA-2025:21148
Cryostat 4 on RHEL 9cryostat/cryostat-operator-bundle:4.1.0-11Fixed 2025-11-25RHSA-2025:21148
Cryostat 4 on RHEL 9cryostat/cryostat-reports-rhel9:4.1.0-11Fixed 2025-11-25RHSA-2025:21148
Cryostat 4 on RHEL 9cryostat/cryostat-rhel9:4.1.0-11Fixed 2025-11-25RHSA-2025:21148
Cryostat 4 on RHEL 9cryostat/cryostat-rhel9-operator:4.1.0-11Fixed 2025-11-25RHSA-2025:21148
Cryostat 4 on RHEL 9cryostat/cryostat-storage-rhel9:4.1.0-11Fixed 2025-11-25RHSA-2025:21148
Cryostat 4 on RHEL 9cryostat/jfr-datasource-rhel9:4.1.0-11Fixed 2025-11-25RHSA-2025:21148
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-agent-rhel9Affected
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-controller-rhel9Affected
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-rhel9Affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-controller-rhel9Not affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-git-cloner-rhel9Not affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-image-bundler-rhel9Not affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-image-processing-rhel9Not affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-operator-bundleNot affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-rhel9-operatorNot affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-shared-resource-rhel9Not affected
702 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-47907.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON