CVE-2025-61731 Affecting golang-1.24 package, versions *


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.55% (44th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2604-GOLANG124-16233397
  • published2 Jun 2026
  • disclosed28 Jan 2026

Introduced: 28 Jan 2026

CVE-2025-61731  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:26.04 golang-1.24.

NVD Description

Note: Versions mentioned in the description apply only to the upstream golang-1.24 package and not the golang-1.24 package as distributed by Ubuntu. See How to fix? for Ubuntu:26.04 relevant fixed versions and status.

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.

References

CVSS Base Scores

version 3.1