CVE-2025-61731

Arbitrary file write using cgo pkg-config directive in cmd/go

CVE-2025-61731 is fixed in 18 products on 2 platforms, first by Go Programming Language 1.25.6, released January 15, 2026. It is not reported as exploited. Patch Radar priority: High.

HighFixed on 2 platforms
CVSS
8.6
Important
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0061
49th percentile

Building a malicious file with cmd/go can cause can cause a write to an attacker-controlled file with partial control of the file content. The "#cgo pkg-config:" directive in a Go source file provides command-line arguments to provide to the Go pkg-config command. An attacker can provide a "--log-file" argument to this directive, causing pkg-config to write to an attacker-controlled location.

Where it's fixed

ProductFixed inFixReleased
Windows apps
Go Programming Language 1.25.6 Go Programming Language 1.25.6 Jan 15, 2026
Linux
amazon-ssm-agent · amzn 2023 3.3.3883.0-1.amzn2023 ALAS2023-2026-1499 Mar 16, 2026
coredns · opensuse-leap 16.0 1.14.2-bp160.1.1 OPENSUSE-SU-2026:20619-1 Apr 23, 2026
delve · RHEL 8 0:1.25.2-1.module+el8.10.0+23746+9db33b5e RHSA-2026:6949 Apr 15, 2026
delve · almalinux 8 1.25.2-1.module_el8.10.0+4074+24330916 ALSA-2026:6949 Apr 8, 2026
delve · ol 8 0:1.25.2-1.0.1.module+el8.10.0+90715+2d4d8dfd ELSA-2026-6949 Apr 8, 2026
delve · rocky 8 0:1.25.2-1.module+el8.10.0+40035+ee0a7047 RLSA-2026:6949 Apr 8, 2026
go-toolset · RHEL 8 0:1.25.8-1.module+el8.10.0+24168+9fd3a552 RHSA-2026:6949 Apr 15, 2026
go-toolset · RHEL 9 0:1.25.8-1.el9_7 RHSA-2026:5942 Apr 15, 2026
go-toolset · almalinux 8 1.25.8-1.module_el8.10.0+4156+92f0ae2f ALSA-2026:6949 Apr 8, 2026
go-toolset · almalinux 9 1.25.8-1.el9_7 ALSA-2026:5942 Mar 26, 2026
go-toolset · ol 10 0:1.25.8-1.el10_1 ELSA-2026-5941 Mar 26, 2026
go-toolset · ol 8 0:1.25.8-1.module+el8.10.0+90863+afbc39cb ELSA-2026-6949 Apr 8, 2026
go-toolset · ol 9 0:1.25.8-1.el9_7 ELSA-2026-5942 Mar 26, 2026
go1.24 · opensuse-leap 15.6 1.24.12-150000.1.53.1 SUSE-SU-2026:0219-1 Jan 22, 2026
go1.24 · opensuse-leap 16.0 1.24.12-160000.1.1 OPENSUSE-SU-2026:20077-1 Jan 22, 2026
go1.24 · sles 15.6 1.24.12-150000.1.53.1 SUSE-SU-2026:0219-1 Jan 22, 2026
go1.24 · sles 15.7 1.24.12-150000.1.53.1 SUSE-SU-2026:0219-1 Jan 22, 2026
go1.24 · sles 16.0 1.24.12-160000.1.1 SUSE-SU-2026:20122-1 Jan 22, 2026
go1.24-openssl · opensuse-leap 15.6 1.24.12-150600.13.15.1 SUSE-SU-2026:0308-1 Jan 28, 2026
go1.24-openssl · opensuse-leap 16.0 1.24.13-160000.1.1 OPENSUSE-SU-2026:20308-1 Mar 3, 2026
go1.24-openssl · sles 15.6 1.24.12-150600.13.15.1 SUSE-SU-2026:0308-1 Jan 28, 2026
go1.24-openssl · sles 15.7 1.24.12-150600.13.15.1 SUSE-SU-2026:0308-1 Jan 28, 2026
go1.24-openssl · sles 16.0 1.24.13-160000.1.1 SUSE-SU-2026:20629-1 Mar 3, 2026
go1.25 · opensuse-leap 15.6 1.25.6-150000.1.26.1 SUSE-SU-2026:0218-1 Jan 22, 2026
go1.25 · opensuse-leap 16.0 1.25.6-160000.1.1 OPENSUSE-SU-2026:20085-1 Jan 22, 2026
go1.25 · sles 15.6 1.25.6-150000.1.26.1 SUSE-SU-2026:0218-1 Jan 22, 2026
go1.25 · sles 15.7 1.25.6-150000.1.26.1 SUSE-SU-2026:0218-1 Jan 22, 2026
go1.25 · sles 16.0 1.25.6-160000.1.1 SUSE-SU-2026:20132-1 Jan 22, 2026
go1.25-openssl · opensuse-leap 15.6 1.25.6-150600.13.9.1 SUSE-SU-2026:0298-1 Jan 26, 2026
go1.25-openssl · opensuse-leap 16.0 1.25.7-160000.1.1 OPENSUSE-SU-2026:20301-1 Mar 3, 2026
go1.25-openssl · sles 15.6 1.25.6-150600.13.9.1 SUSE-SU-2026:0298-1 Jan 26, 2026
go1.25-openssl · sles 15.7 1.25.6-150600.13.9.1 SUSE-SU-2026:0298-1 Jan 26, 2026
go1.25-openssl · sles 16.0 1.25.7-160000.1.1 SUSE-SU-2026:20623-1 Mar 3, 2026
golang · RHEL 10 1.25.8-1.el10_0 RHSA-2026:5943 Mar 6, 2026
golang · RHEL 8 0:1.25.8-1.module+el8.10.0+24168+9fd3a552 RHSA-2026:6949 Apr 15, 2026
golang · RHEL 9 0:1.25.8-1.el9_7 RHSA-2026:5942 Apr 15, 2026
golang · almalinux 8 1.25.8-1.module_el8.10.0+4156+92f0ae2f ALSA-2026:6949 Apr 8, 2026
golang · almalinux 9 1.25.8-1.el9_7 ALSA-2026:5942 Mar 26, 2026
golang · amzn 2023 1.24.12-1.amzn2023.0.1 ALAS2023-2026-1381 Feb 5, 2026
golang · ol 10 0:1.25.8-1.el10_1 ELSA-2026-5941 Mar 26, 2026
golang · ol 8 0:1.25.8-1.module+el8.10.0+90863+afbc39cb ELSA-2026-6949 Apr 8, 2026
golang · ol 9 0:1.25.8-1.el9_7 ELSA-2026-5942 Mar 26, 2026
golang · rocky 10 0:1.25.8-1.el10_1 RLSA-2026:5941 Apr 9, 2026
golang · rocky 9 0:1.25.8-1.el9_7 RLSA-2026:5942 Apr 7, 2026
golang-bin · RHEL 8 0:1.25.8-1.module+el8.10.0+24168+9fd3a552 RHSA-2026:6949 Apr 15, 2026
golang-bin · RHEL 9 0:1.25.8-1.el9_7 RHSA-2026:5942 Apr 15, 2026
golang-bin · almalinux 8 1.25.8-1.module_el8.10.0+4156+92f0ae2f ALSA-2026:6949 Apr 8, 2026
golang-bin · almalinux 9 1.25.8-1.el9_7 ALSA-2026:5942 Mar 26, 2026
golang-bin · amzn 2023 1.24.12-1.amzn2023.0.1 ALAS2023-2026-1381 Feb 5, 2026
golang-bin · ol 10 0:1.25.8-1.el10_1 ELSA-2026-5941 Mar 26, 2026
golang-bin · ol 8 0:1.25.8-1.module+el8.10.0+90863+afbc39cb ELSA-2026-6949 Apr 8, 2026
golang-bin · ol 9 0:1.25.8-1.el9_7 ELSA-2026-5942 Mar 26, 2026
golang-docs · RHEL 8 0:1.25.8-1.module+el8.10.0+24168+9fd3a552 RHSA-2026:6949 Apr 15, 2026
golang-docs · RHEL 9 0:1.25.8-1.el9_7 RHSA-2026:5942 Apr 15, 2026
golang-docs · almalinux 10 1.25.8-1.el10_1.alma.1 ALSA-2026:5941 Mar 26, 2026
golang-docs · almalinux 8 1.25.8-1.module_el8.10.0+4156+92f0ae2f ALSA-2026:6949 Apr 8, 2026
golang-docs · almalinux 9 1.25.8-1.el9_7 ALSA-2026:5942 Mar 26, 2026
golang-docs · amzn 2023 1.24.12-1.amzn2023.0.1 ALAS2023-2026-1381 Feb 5, 2026
golang-docs · ol 10 0:1.25.8-1.el10_1 ELSA-2026-5941 Mar 26, 2026
golang-docs · ol 8 0:1.25.8-1.module+el8.10.0+90863+afbc39cb ELSA-2026-6949 Apr 8, 2026
golang-docs · ol 9 0:1.25.8-1.el9_7 ELSA-2026-5942 Mar 26, 2026
golang-misc · RHEL 8 0:1.25.8-1.module+el8.10.0+24168+9fd3a552 RHSA-2026:6949 Apr 15, 2026
golang-misc · RHEL 9 0:1.25.8-1.el9_7 RHSA-2026:5942 Apr 15, 2026
golang-misc · almalinux 10 1.25.8-1.el10_1.alma.1 ALSA-2026:5941 Mar 26, 2026
golang-misc · almalinux 8 1.25.8-1.module_el8.10.0+4156+92f0ae2f ALSA-2026:6949 Apr 8, 2026
golang-misc · almalinux 9 1.25.8-1.el9_7 ALSA-2026:5942 Mar 26, 2026
golang-misc · amzn 2023 1.24.12-1.amzn2023.0.1 ALAS2023-2026-1381 Feb 5, 2026
golang-misc · ol 10 0:1.25.8-1.el10_1 ELSA-2026-5941 Mar 26, 2026
golang-misc · ol 8 0:1.25.8-1.module+el8.10.0+90863+afbc39cb ELSA-2026-6949 Apr 8, 2026
golang-misc · ol 9 0:1.25.8-1.el9_7 ELSA-2026-5942 Mar 26, 2026
golang-race · RHEL 8 0:1.25.8-1.module+el8.10.0+24168+9fd3a552 RHSA-2026:6949 Apr 15, 2026
golang-race · RHEL 9 0:1.25.8-1.el9_7 RHSA-2026:5942 Apr 15, 2026
golang-race · almalinux 8 1.25.8-1.module_el8.10.0+4156+92f0ae2f ALSA-2026:6949 Apr 8, 2026
golang-race · almalinux 9 1.25.8-1.el9_7 ALSA-2026:5942 Mar 26, 2026
golang-race · ol 10 0:1.25.8-1.el10_1 ELSA-2026-5941 Mar 26, 2026
golang-race · ol 8 0:1.25.8-1.module+el8.10.0+90863+afbc39cb ELSA-2026-6949 Apr 8, 2026
golang-race · ol 9 0:1.25.8-1.el9_7 ELSA-2026-5942 Mar 26, 2026
golang-shared · amzn 2023 1.24.12-1.amzn2023.0.1 ALAS2023-2026-1381 Feb 5, 2026
golang-src · RHEL 8 0:1.25.8-1.module+el8.10.0+24168+9fd3a552 RHSA-2026:6949 Apr 15, 2026
golang-src · RHEL 9 0:1.25.8-1.el9_7 RHSA-2026:5942 Apr 15, 2026
golang-src · almalinux 10 1.25.8-1.el10_1.alma.1 ALSA-2026:5941 Mar 26, 2026
golang-src · almalinux 8 1.25.8-1.module_el8.10.0+4156+92f0ae2f ALSA-2026:6949 Apr 8, 2026
golang-src · almalinux 9 1.25.8-1.el9_7 ALSA-2026:5942 Mar 26, 2026
golang-src · amzn 2023 1.24.12-1.amzn2023.0.1 ALAS2023-2026-1381 Feb 5, 2026
golang-src · ol 10 0:1.25.8-1.el10_1 ELSA-2026-5941 Mar 26, 2026
golang-src · ol 8 0:1.25.8-1.module+el8.10.0+90863+afbc39cb ELSA-2026-6949 Apr 8, 2026
golang-src · ol 9 0:1.25.8-1.el9_7 ELSA-2026-5942 Mar 26, 2026
golang-tests · RHEL 8 0:1.25.8-1.module+el8.10.0+24168+9fd3a552 RHSA-2026:6949 Apr 15, 2026
golang-tests · RHEL 9 0:1.25.8-1.el9_7 RHSA-2026:5942 Apr 15, 2026
golang-tests · almalinux 10 1.25.8-1.el10_1.alma.1 ALSA-2026:5941 Mar 26, 2026
golang-tests · almalinux 8 1.25.8-1.module_el8.10.0+4156+92f0ae2f ALSA-2026:6949 Apr 8, 2026
golang-tests · almalinux 9 1.25.8-1.el9_7 ALSA-2026:5942 Mar 26, 2026
golang-tests · amzn 2023 1.24.12-1.amzn2023.0.1 ALAS2023-2026-1381 Feb 5, 2026
golang-tests · ol 10 0:1.25.8-1.el10_1 ELSA-2026-5941 Mar 26, 2026
golang-tests · ol 8 0:1.25.8-1.module+el8.10.0+90863+afbc39cb ELSA-2026-6949 Apr 8, 2026
golang-tests · ol 9 0:1.25.8-1.el9_7 ELSA-2026-5942 Mar 26, 2026
govulncheck-vulndb · opensuse-leap 15.6 0.0.20260128T190828-150000.1.143.1 SUSE-SU-2026:0354-1 Jan 30, 2026
govulncheck-vulndb · opensuse-leap 16.0 0.0.20260723T184607-160000.1.1 OPENSUSE-SU-2026:21483-1 Jul 30, 2026

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.