OS Command Injection in Go programming language - CVE-2025-4674

 

OS Command Injection in Go programming language - CVE-2025-4674

Published: August 21, 2025


Vulnerability identifier: #VU114341
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-4674
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation when handling multiple VCS configuration metadata in Go toolchain. A remote attacker can trick the victim into directly cloning specially crafted Git or Mercurial repositories and execute arbitrary OS commands on the system.


Affected software

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

How to mitigate CVE-2025-4674

Install updates from vendor's website.

Go programming language - addressed in versions 1.23.11, 1.24.5
IT Service Intelligence (ITSI) - update to 4.21.2
golang (Red Hat package) - addressed in versions 1.19.13-18.el9_2, 1.21.13-10.el9_4, 1.24.6-1.el9_6
golang - addressed in versions 1.21.4-35, 1.21.4-36
golang-devel - addressed in versions 1.21.4-35, 1.21.4-36
golang-help - addressed in versions 1.21.4-35, 1.21.4-36
go1.23-openssl-doc - addressed in versions 1.23.12-150000.1.18.1, 1.23.12-150600.13.9.1
go1.23-openssl-race - addressed in versions 1.23.12-150000.1.18.1, 1.23.12-150600.13.9.1
go1.23-openssl - addressed in versions 1.23.12-150000.1.18.1, 1.23.12-150600.13.9.1
go1.23-openssl-debuginfo - addressed in versions 1.23.12-150000.1.18.1, 1.23.12-150600.13.9.1
delve - update to 1.24.1-1.0.2
go-toolset - update to 1.24.6-1
golang-tests - update to 1.24.6-1.0.1
golang-misc - update to 1.24.6-1.0.1
golang-docs - update to 1.24.6-1.0.1
golang-bin - update to 1.24.6-1.0.1
golang - update to 1.24.6-1.0.1
golang-src - update to 1.24.6-1.0.1
go1.24-openssl-doc - addressed in versions 1.24.6-150000.1.12.1, 1.24.6-150600.13.9.1
go1.24-openssl - addressed in versions 1.24.6-150000.1.12.1, 1.24.6-150600.13.9.1
go1.24-openssl-race - addressed in versions 1.24.6-150000.1.12.1, 1.24.6-150600.13.9.1
go1.24-openssl-debuginfo - update to 1.24.6-150600.13.9.1
go1.25-openssl-race - addressed in versions 1.25.0-150000.1.3.1, 1.25.0-150600.13.3.1, 1.25.6-150000.1.9.1, 1.25.6-150600.13.9.1
go1.25-openssl-doc - addressed in versions 1.25.0-150000.1.3.1, 1.25.0-150600.13.3.1, 1.25.6-150000.1.9.1, 1.25.6-150600.13.9.1
go1.25-openssl - addressed in versions 1.25.0-150000.1.3.1, 1.25.0-150600.13.3.1, 1.25.6-150000.1.9.1, 1.25.6-150600.13.9.1
go1.25-openssl-debuginfo - addressed in versions 1.25.0-150000.1.3.1, 1.25.0-150600.13.3.1, 1.25.6-150000.1.9.1, 1.25.6-150600.13.9.1
go1.25-doc - addressed in versions 1.25.0-150000.1.5.1, 1.25.3-150000.1.19.1
go1.25 - addressed in versions 1.25.0-150000.1.5.1, 1.25.3-150000.1.19.1
go1.25-race - addressed in versions 1.25.0-150000.1.5.1, 1.25.3-150000.1.19.1

External References

Related Security Bulletins