CVE-2025-61731
EUVD-2025-20644728.01.2026, 20:16
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.Enginsight
Affected Products (NVD)
| Vendor | Product | Version |
|---|---|---|
| golang | go | 𝑥 < 1.24.12 |
| golang | go | 1.25.0 ≤ 𝑥 < 1.25.6 |
𝑥
= Vulnerable software versions
Debian Releases
Red Hat Enterprise Linux Releases
Red Hat Product | |||
|---|---|---|---|
| go-toolset |
| ||
| golang |
| ||
| golang-bin |
| ||
| golang-docs |
| ||
| golang-misc |
| ||
| golang-race |
| ||
| golang-src |
| ||
| golang-tests |
|
Vulnerability Media Exposure