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.
Affected Products (NVD)
| Vendor | Product | Version |
|---|---|---|
| golang | go | 𝑥 < 1.24.12 |
| golang | go | 1.25.0 ≤ 𝑥 < 1.25.6 |
𝑥
= Vulnerable software versions
Ubuntu Releases
Ubuntu Product | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| golang-1.13 |
| ||||||||||||||
| golang-1.18 |
| ||||||||||||||
| golang-1.23 |
| ||||||||||||||
| golang-1.24 |
| ||||||||||||||
| golang-1.25 |
| ||||||||||||||
| golang |
| ||||||||||||||
| golang-1.10 |
| ||||||||||||||
| golang-1.14 |
| ||||||||||||||
| golang-1.16 |
| ||||||||||||||
| golang-1.17 |
| ||||||||||||||
| golang-1.20 |
| ||||||||||||||
| golang-1.21 |
| ||||||||||||||
| golang-1.22 |
| ||||||||||||||
| golang-1.6 |
| ||||||||||||||
| golang-1.8 |
| ||||||||||||||
| golang-1.9 |
|
Red Hat Enterprise Linux Releases
Red Hat Product | |||
|---|---|---|---|
| go-toolset |
| ||
| golang |
| ||
| golang-bin |
| ||
| golang-docs |
| ||
| golang-misc |
| ||
| golang-race |
| ||
| golang-src |
| ||
| golang-tests |
|
Amazon Linux Releases
Amazon Package | |||||
|---|---|---|---|---|---|
| amazon-ssm-agent |
| ||||
| golang |
| ||||
| golang-bin |
| ||||
| golang-docs |
| ||||
| golang-misc |
| ||||
| golang-shared |
| ||||
| golang-src |
| ||||
| golang-tests |
|
References