CVE-2025-61731

7.8 HIGH
Published: January 28, 2026 Modified: February 06, 2026
View on NVD

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://go.dev/cl/736711
Source: security@golang.org
Patch
https://go.dev/issue/77100
Source: security@golang.org
Issue Tracking
https://groups.google.com/g/golang-announce/c/Vd2tYVM8eUc
Source: security@golang.org
Release Notes Mailing List
https://pkg.go.dev/vuln/GO-2026-4339
Source: security@golang.org
Vendor Advisory

4 reference(s) from NVD

Quick Stats

CVSS v3 Score
7.8 / 10.0
EPSS (Exploit Probability)
0.0%
1th percentile
Exploitation Status
Not in CISA KEV

Affected Vendors

golang