CVE-2025-61731
January 28, 2026
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 Packages
https://github.com/golang/go.git (GITHUB):
Affected version(s) =go1.26rc1 <go1.26rc2Fix Suggestion:
Update to version go1.26rc2https://github.com/golang/go.git (GITHUB):
Affected version(s) >=go1.25rc1 <go1.25.6Fix Suggestion:
Update to version go1.25.6https://github.com/golang/go.git (GITHUB):
Affected version(s) >=go1.0.1 <go1.24.12Fix Suggestion:
Update to version go1.24.12Additional Notes
The description of this vulnerability differs from MITRE.
Related ResourcesĀ (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.5
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.8
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
EPSS
Base Score:
0.01