cvedb.io
CVE-2025-61731
HIGH · CVSS 7.8
EPSS exploitation probability: 0%
Published 2026-01-28T20:16:10.073 · Last modified 2026-06-30T03:16:56.140

Summary

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

golang — go

Does this affect you?

Add your gear to cvedb and we'll alert you only when golang ships something exploited.

Check my exposure →

References

This product uses data from the NVD API but is not endorsed or certified by the NVD. Informational only; not professional security advice.