Code Injection in Go programming language - CVE-2025-61732

 

Code Injection in Go programming language - CVE-2025-61732

Published: March 3, 2026


Vulnerability identifier: #VU123445
CSH Severity: Medium
CVSS v4 BT: 1.2 [CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N/E:U/U:Green]
CVE-ID: CVE-2025-61732
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to inject arbitrary code into the application.

The vulnerability exists due to improper input validation in cmd/cgo caused by discrepancy between how Go and C/C++ comments are parsed. A remote attacker can smuggle code into the resulting cgo binary.


Affected software

Go programming language
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
Anolis OS
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Development Tools Module
openSUSE Leap
openEuler
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
golang-devel
golang
golang-help
golang (Red Hat package)
go1.24-openssl-doc
go1.24-openssl
go1.24-openssl-race
go1.24-race
go1.24
go1.24-doc
go1.24-openssl-debuginfo
delve
golang-misc
golang-src
golang-docs
golang-race
golang-bin
go-toolset
golang-tests
go1.25-openssl-doc
go1.25-openssl-race
go1.25-openssl
go1.25-openssl-debuginfo
go1.25-race
go1.25
go1.25-doc
Splunk Enterprise

How to mitigate CVE-2025-61732

Install updates from vendor's website.

Go programming language - addressed in versions 1.24.13, 1.25.7
Splunk Enterprise - addressed in versions 9.3.12, 9.4.11, 10.0.6, 10.2.3
golang-devel - addressed in versions 1.15.7-59, 1.17.3-47, 1.21.4-42, 1.21.4-43, 1.21.4-45
golang - addressed in versions 1.15.7-59, 1.17.3-47, 1.21.4-42, 1.21.4-43, 1.21.4-45
golang-help - addressed in versions 1.15.7-59, 1.17.3-47, 1.21.4-42, 1.21.4-43, 1.21.4-45
golang (Red Hat package) - addressed in versions 1.17.13-10.el9_0, 1.19.13-23.el9_2, 1.21.13-14.el9_4, 1.25.7-1.el9_6, 1.25.7-1.el9_7, 1.25.7-1.el10_0, 1.25.7-1.el10_1
go1.24-openssl-doc - addressed in versions 1.24.13-150000.1.23.1, 1.24.13-150600.13.18.1
go1.24-openssl - addressed in versions 1.24.13-150000.1.23.1, 1.24.13-150600.13.18.1
go1.24-openssl-race - addressed in versions 1.24.13-150000.1.23.1, 1.24.13-150600.13.18.1
go1.24-race - update to 1.24.13-150000.1.56.1
go1.24 - update to 1.24.13-150000.1.56.1
go1.24-doc - update to 1.24.13-150000.1.56.1
go1.24-openssl-debuginfo - update to 1.24.13-150600.13.18.1
delve - update to 1.25.2-1.0.2
golang-misc - update to 1.25.7-1.0.1
golang-src - update to 1.25.7-1.0.1
golang-docs - update to 1.25.7-1.0.1
golang-race - update to 1.25.7-1.0.1
golang-bin - update to 1.25.7-1.0.1
golang - update to 1.25.7-1.0.1
go-toolset - update to 1.25.7-1.0.1
golang-tests - update to 1.25.7-1.0.1
go1.25-openssl-doc - addressed in versions 1.25.7-150000.1.15.1, 1.25.8-150000.1.18.1, 1.25.8-150600.13.15.1
go1.25-openssl-race - addressed in versions 1.25.7-150000.1.15.1, 1.25.8-150000.1.18.1, 1.25.8-150600.13.15.1
go1.25-openssl - addressed in versions 1.25.7-150000.1.15.1, 1.25.8-150000.1.18.1, 1.25.8-150600.13.15.1
go1.25-openssl-debuginfo - addressed in versions 1.25.7-150000.1.15.1, 1.25.8-150000.1.18.1, 1.25.8-150600.13.15.1
go1.25-race - update to 1.25.7-150000.1.29.1
go1.25 - update to 1.25.7-150000.1.29.1
go1.25-doc - update to 1.25.7-150000.1.29.1

External References

Related Security Bulletins