CVE-2025-61731: fallo de gravedad alta en Go toolchain cmd/go
Arbitrary file write using cgo pkg-config directive in cmd/go
Publicada el · Actualizada el
Aviso por correo cuando entre en el KEV, tenga PoC pública o suba de nota.
21Vexday Risk Score
Sin señal de explotación. Ningún artefacto público de explotación conocido hasta ahora.
ssvc Trackcvss 7.8epss 0.6%
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.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Productos afectados
Go toolchain · cmd/goCVEs relacionadas — Go toolchain cmd/go
En el mismo producto, de las más peligrosas a las menos.
CVE-2020-28367—Arbitrary code execution via the go command with cgo in cmd/goEPSS 2.4%CVE-2020-28366—Arbitrary code execution in go command with cgo in cmd/go and cmd/cgoEPSS 2.3%CVE-2023-39323HIGHArbitrary code execution during build via line directives in cmd/goEPSS 1.9%CVE-2023-29404CRITICALImproper handling of non-optional LDFLAGS in go command with cgo in cmd/goEPSS 1.8%CVE-2023-39320—Arbitrary code execution via go.mod toolchain directive in cmd/goEPSS 1.8%CVE-2023-29405CRITICALImproper sanitization of LDFLAGS with embedded spaces in go command with cgo in cmd/goEPSS 1.7%
Referencias
https://access.redhat.com/errata/RHSA-2026:12118https://access.redhat.com/errata/RHSA-2026:12282https://access.redhat.com/errata/RHSA-2026:13736https://access.redhat.com/errata/RHSA-2026:14100https://access.redhat.com/errata/RHSA-2026:14774https://access.redhat.com/errata/RHSA-2026:15091https://access.redhat.com/errata/RHSA-2026:17598https://access.redhat.com/errata/RHSA-2026:20088https://access.redhat.com/errata/RHSA-2026:21691https://access.redhat.com/errata/RHSA-2026:3556https://access.redhat.com/errata/RHSA-2026:3559https://access.redhat.com/errata/RHSA-2026:3855