CVE-2025-61731 Affecting go-toolset:rhel8/golang-docs package, versions <0:1.25.8-1.module_el8.10.0+4156+92f0ae2f


Severity

Recommended
high

Based on AlmaLinux security rating.

Threat Intelligence

EPSS
0.53% (41st 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-ALMALINUX8-GOTOOLSET-16012585
  • published13 Apr 2026
  • disclosed8 Apr 2026

Introduced: 8 Apr 2026

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

How to fix?

Upgrade AlmaLinux:8 go-toolset:rhel8/golang-docs to version 0:1.25.8-1.module_el8.10.0+4156+92f0ae2f or higher.
This issue was patched in ALSA-2026:6949.

NVD Description

Note: Versions mentioned in the description apply only to the upstream go-toolset:rhel8/golang-docs package and not the go-toolset:rhel8/golang-docs package as distributed by AlmaLinux. See How to fix? for AlmaLinux:8 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