CVSS 3.1
7.8 highCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HHigh (7.8) in golang go. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in toolchain 1.24.12, 1.25.6.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Htoolchain (Go): fixed in 1.24.12, 1.25.6Explain CVE-2025-61731 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-61731?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-61731?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-61731 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.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Go toolchain cmd/go | before 1.24.12 |
| Go toolchain cmd/go | from 1.25.0 before 1.25.6 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GO-2026-4339 | Go | toolchain | <1.24.12 >=1.25.0 <1.25.6 | 1.24.12, 1.25.6 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | golang-1.19 | no fix listed | DEBIAN-CVE-2025-61731 |
| Debian | 13 | golang-1.24 | no fix listed | DEBIAN-CVE-2025-61731 |
| Ubuntu | 14.04:LTS, 16.04:LTS, 18.04:LTS | golang-1.10 | no fix listed | UBUNTU-CVE-2025-61731 |
| Ubuntu | 20.04:LTS | golang-1.13, golang-1.14, golang-1.18 and 3 more | no fix listed | UBUNTU-CVE-2025-61731 |
| Ubuntu | 22.04:LTS | golang-1.17, golang-1.18, golang-1.20 and 5 more | no fix listed | UBUNTU-CVE-2025-61731 |
| Ubuntu | 24.04:LTS | golang-1.21, golang-1.22, golang-1.23 and 1 more | no fix listed | UBUNTU-CVE-2025-61731 |
| Ubuntu | 25.10 | golang-1.23, golang-1.24, golang-1.25 | no fix listed | UBUNTU-CVE-2025-61731 |
| Ubuntu | 26.04:LTS | golang-1.23, golang-1.24 | no fix listed | UBUNTU-CVE-2025-61731 |
| Ubuntu | Pro:16.04:LTS | golang-1.13, golang-1.18 | no fix listed | UBUNTU-CVE-2025-61731 |
| Ubuntu | Pro:18.04:LTS | golang-1.13, golang-1.16, golang-1.18 | no fix listed | UBUNTU-CVE-2025-61731 |
| Ubuntu | Pro:20.04:LTS | golang-1.16 | no fix listed | UBUNTU-CVE-2025-61731 |
| Ubuntu | Pro:22.04:LTS | golang-1.13 | no fix listed | UBUNTU-CVE-2025-61731 |
| Red Hat | enterprise_linux:8::appstream | delve, delve-debuginfo, delve-debugsource | 0:1.25.2-1.module+el8.10.0+23746+9db33b5e | RHSA-2026:6949 |
| Red Hat | enterprise_linux:8::appstream | golang, go-toolset, golang-bin and 5 more | 0:1.25.8-1.module+el8.10.0+24168+9fd3a552 | RHSA-2026:6949 |
| Red Hat | enterprise_linux:9::appstream | golang, go-toolset, golang-bin and 5 more | 0:1.25.8-1.el9_7 | RHSA-2026:5942 |
| Red Hat | enterprise_linux:10.1 | golang, go-toolset, golang-bin and 5 more | 0:1.25.8-1.el10_1 | RHSA-2026:5941 |
| Red Hat | enterprise_linux_eus:10.0 | golang, go-toolset, golang-bin and 5 more | 0:1.25.8-1.el10_0 | RHSA-2026:5943 |
| Red Hat | hummingbird:1 | golang1.25, golang1.25-bin, golang1.25-src and 4 more | 0:1.25.9-1.hum1 | RHSA-2026:7385 |
| Red Hat | hummingbird:1 | golang1.26, golang1.26-bin, golang1.26-src and 4 more | 0:1.26.2-1.hum1 | RHSA-2026:7291 |
| Red Hat | rhel_aus:8.2::appstream | delve, delve-debuginfo, delve-debugsource | 0:1.3.2-3.module+el8.2.0+5581+896cb53e | RHSA-2026:7878 |
| Red Hat | rhel_aus:8.2::appstream | go-toolset | 0:1.13.15-1.module+el8.2.0+7662+fa98b974 | RHSA-2026:7878 |
| Red Hat | rhel_aus:8.2::appstream | golang, golang-bin, golang-src and 4 more | 0:1.13.15-15.module+el8.2.0+24191+89968df7 | RHSA-2026:7878 |
| Red Hat | rhel_aus:8.4::appstream, rhel_eus_long_life:8.4::appstream | delve, delve-debuginfo, delve-debugsource | 0:1.5.0-2.module+el8.4.0+8864+58b0fcdb | RHSA-2026:7879 |
| Red Hat | rhel_aus:8.4::appstream, rhel_eus_long_life:8.4::appstream | go-toolset | 0:1.15.14-3.module+el8.4.0+22765+91da4d3f | RHSA-2026:7879 |
| 11 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Linux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 more | go1.24 | 1.24.12-150000.1.53.1 | SUSE-SU-2026:0219-1 |
| SUSE | Linux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 more | go1.25 | 1.25.6-150000.1.26.1 | SUSE-SU-2026:0218-1 |
| SUSE | Linux 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 more | go1.24-openssl | 1.24.12-150000.1.18.1 | SUSE-SU-2026:0296-1 |
| SUSE | Linux 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 more | go1.25-openssl | 1.25.6-150000.1.9.1 | SUSE-SU-2026:0297-1 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6 | go1.24-openssl | 1.24.12-150600.13.15.1 | SUSE-SU-2026:0308-1 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6 | go1.25-openssl | 1.25.6-150600.13.9.1 | SUSE-SU-2026:0298-1 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | go1.24 | 1.24.12-160000.1.1 | SUSE-SU-2026:20122-1 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | go1.24-openssl | 1.24.13-160000.1.1 | SUSE-SU-2026:20629-1 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | go1.25 | 1.25.6-160000.1.1 | SUSE-SU-2026:20132-1 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | go1.25-openssl | 1.25.7-160000.1.1 | SUSE-SU-2026:20623-1 |
| openSUSE | Leap 15.6 | go1.24 | 1.24.12-150000.1.53.1 | SUSE-SU-2026:0219-1 |
| openSUSE | Leap 15.6 | go1.24-openssl | 1.24.12-150600.13.15.1 | SUSE-SU-2026:0308-1 |
| openSUSE | Leap 15.6 | go1.25 | 1.25.6-150000.1.26.1 | SUSE-SU-2026:0218-1 |
| openSUSE | Leap 15.6 | go1.25-openssl | 1.25.6-150600.13.9.1 | SUSE-SU-2026:0298-1 |
| openSUSE | Leap 15.6 | govulncheck-vulndb | 0.0.20260128T190828-150000.1.143.1 | SUSE-SU-2026:0354-1 |
| openSUSE | Leap 16.0 | coredns | 1.14.2-bp160.1.1 | openSUSE-SU-2026:20619-1 |
| openSUSE | Leap 16.0 | go1.24 | 1.24.12-160000.1.1 | openSUSE-SU-2026:20077-1 |
| openSUSE | Leap 16.0 | go1.24-openssl | 1.24.13-160000.1.1 | openSUSE-SU-2026:20308-1 |
| openSUSE | Leap 16.0 | go1.25 | 1.25.6-160000.1.1 | openSUSE-SU-2026:20085-1 |
| openSUSE | Leap 16.0 | go1.25-openssl | 1.25.7-160000.1.1 | openSUSE-SU-2026:20301-1 |
| openSUSE | Leap 16.0 | govulncheck-vulndb | 0.0.20260723T184607-160000.1.1 | openSUSE-SU-2026:21483-1 |
| openSUSE | Tumbleweed | go1.24 | 1.24.12-1.1 | openSUSE-SU-2026:10063-1 |
| 1 more for openSUSE in the JSON and on openSUSE's page. | ||||
| AlmaLinux | 8 | delve | 1.25.2-1.module_el8.10.0+4074+24330916 | ALSA-2026:6949 |
| AlmaLinux | 8 | golang, go-toolset, golang-bin and 5 more | 1.25.8-1.module_el8.10.0+4156+92f0ae2f | ALSA-2026:6949 |
| AlmaLinux | 9 | golang, go-toolset, golang-bin and 5 more | 1.25.8-1.el9_7 | ALSA-2026:5942 |
| AlmaLinux | 10 | golang-src, golang-docs, golang-misc and 1 more | 1.25.8-1.el10_1.alma.1 | ALSA-2026:5941 |
| Rocky Linux | 8 | delve | 0:1.25.2-1.module+el8.10.0+40035+ee0a7047 | RLSA-2026:6949 |
| Rocky Linux | 9 | golang | 0:1.25.8-1.el9_7 | RLSA-2026:5942 |
| Rocky Linux | 10 | golang | 0:1.25.8-1.el10_1 | RLSA-2026:5941 |
| Alpine | v3.22 | go | 1.24.12-r0 | ALPINE-CVE-2025-61731 |
| Alpine | v3.23, v3.24 | etcd | 3.6.8-r0 | ALPINE-CVE-2025-61731 |
| Alpine | v3.23, v3.24 | go | 1.25.6-r0 | ALPINE-CVE-2025-61731 |
| Azure Linux | 3 | golang | no fix listed | AZL-78935 AZL-98568 |
| Alpaquita | 23, 25 | go | 1.24.12-r0 | BELL-CVE-2025-61731 |
| Alpaquita | 25, stream | etcd | 3.6.11-r1 | BELL-CVE-2025-61731 |
| Alpaquita | stream | go | 1.25.6-r0 | BELL-CVE-2025-61731 |
| BellSoft Hardened Containers | 23, 25 | go | 1.24.12-r0 | BELL-CVE-2025-61731 |
| BellSoft Hardened Containers | stream | go | 1.25.6-r0 | BELL-CVE-2025-61731 |
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; Rocky Linux's errata, BSD-3-Clause; 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 rates this Important.
This vulnerability is Important rather than Moderate because compiling a malicious Go source file can cause `pkg-config` to create or append data to files at attacker-chosen locations, subject to the permissions of the build user. This can enable unintended filesystem modifications during the build process, which can lead to broken builds, alter tool behavior, and poison caches or artifacts, even without direct code execution.
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.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | golang-0:1.25.8-1.el10_1 | Fixed 2026-03-26 | RHSA-2026:5941 |
| Red Hat Enterprise Linux 10.0 Extended Update Support | golang-0:1.25.8-1.el10_0 | Fixed 2026-03-26 | RHSA-2026:5943 |
| Red Hat Enterprise Linux 8 | go-toolset:rhel8-8100020260402232122.a3795dee | Fixed 2026-04-08 | RHSA-2026:6949 |
| Red Hat Enterprise Linux 8.2 Advanced Update Support | go-toolset:rhel8-8020020260408140623.02f7cb7a | Fixed 2026-04-13 | RHSA-2026:7878 |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | go-toolset:rhel8-8040020260408080443.5081a262 | Fixed 2026-04-13 | RHSA-2026:7879 |
| Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | go-toolset:rhel8-8040020260408080443.5081a262 | Fixed 2026-04-13 | RHSA-2026:7879 |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | go-toolset:rhel8-8060020260409063558.97d7f71f | Fixed 2026-04-13 | RHSA-2026:7876 |
| Red Hat Enterprise Linux 8.6 Telecommunications Update Service | go-toolset:rhel8-8060020260409063558.97d7f71f | Fixed 2026-04-13 | RHSA-2026:7876 |
| Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | go-toolset:rhel8-8060020260409063558.97d7f71f | Fixed 2026-04-13 | RHSA-2026:7876 |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | go-toolset:rhel8-8080020260331223648.6b4b45d8 | Fixed 2026-04-13 | RHSA-2026:7877 |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | go-toolset:rhel8-8080020260331223648.6b4b45d8 | Fixed 2026-04-13 | RHSA-2026:7877 |
| Red Hat Enterprise Linux 9 | golang-0:1.25.8-1.el9_7 | Fixed 2026-03-26 | RHSA-2026:5942 |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | golang-0:1.17.13-11.el9_0 | Fixed 2026-04-13 | RHSA-2026:7883 |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | golang-0:1.19.13-24.el9_2 | Fixed 2026-04-13 | RHSA-2026:7833 |
| Red Hat Enterprise Linux 9.4 Extended Update Support | golang-0:1.21.13-15.el9_4 | Fixed 2026-04-13 | RHSA-2026:7834 |
| Red Hat Enterprise Linux 9.6 Extended Update Support | golang-0:1.25.8-1.el9_6 | Fixed 2026-03-26 | RHSA-2026:5944 |
| OpenShift Service Mesh 2 | openshift-golang-builder-container | Affected | |
| OpenShift Service Mesh 3 | openshift-golang-builder-container | Affected | |
| Red Hat Enterprise Linux 8 | golang | Affected | |
| Red Hat OpenShift Virtualization 4 | openshift-golang-builder-container | Affected | |
| 484 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-61731.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.