CVE-2025-61731
Aliases:GO-2026-4339BIT-golang-2025-61731
Advisory lineage Upstream: 0 Downstream: 35
Analyzed
Published: 28 Jan 2026, 19:30
Last modified:26 Feb 2026, 15:04
Vulnerability Summary
Overall Risk (default)
medium
31/100 CVSS Score
7.8 HIGH
v3.1 (cve.org)
EPSS Score
0.01% LOW
0% probability 0.00%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected
Timeline
28 Jan 2026, 19:30
Published
Vulnerability first disclosed
26 Feb 2026, 15:04
Last Modified
Vulnerability information updated
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 Metrics
- v3.1•HIGH•Score: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Trends
Current EPSS score: 0.01%• Percentile: 2%
Affected Systems
- go toolchain•cmd/go
< 1.24.12 | ≥ 1.25.0, < 1.25.6
- golang•go
< 1.24.12 | ≥ 1.25.0, < 1.25.6
- Go•toolchain
≥ 1.25.0, < 1.25.6