Live threats

All CVEs / Golang

CVE-2025-61731Golang Go

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
—
Auth required
Yes
Published
Jan 28, 2026
Updated
Sep 10, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-88
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go toolchain < 1.24.12 1.24.12 go get toolchain@v1.24.12
Go toolchain ≥ 1.25.0 < 1.25.6 1.25.6 go get toolchain@v1.25.6

Per OSV / GitHub Advisories (GO-2026-4339). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
golanggo< 1.24.12
golanggo≥ 1.25.0 < 1.25.6

Official advisories

Also: Red Hat (+11), SUSE (+16)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.