CVE-2025-61731
HIGH EPSS 27.8%
Published Jan 28, 20265mo ago · Modified Jun 17, 20261w ago
7.8 CVSS 3.1
Published Jan 28, 2026 5mo ago
Last Modified Jun 17, 2026 1w ago
Description
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 Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Attack Vector Local
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope Unchanged
Confidentiality High
Integrity High
Availability High
Threat Intelligence
EPSS Exploit Probability
27.8% percentile
Exploit & Patch Status
No Known Exploit
Patch Available
Affected Products 2
References 4
- go.dev https://go.dev/cl/736711
- go.dev https://go.dev/issue/77100
- groups.google.com https://groups.google.com/g/golang-announce/c/Vd2tYVM8eUc
- pkg.go.dev https://pkg.go.dev/vuln/GO-2026-4339
Remediation
- go.dev https://go.dev/cl/736711