Arbitrary Argument Injection The advisory has been revoked - it doesn't affect any version of package golang-docs  (opens in a new tab)


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-RHEL10-GOLANGDOCS-15209367
  • published5 Feb 2026
  • disclosed1 Jan 2025

Introduced: 1 Jan 2025

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

Amendment

The Red Hat security team deemed this advisory irrelevant for RHEL:10.

NVD Description

Note: Versions mentioned in the description apply only to the upstream golang-docs package and not the golang-docs package as distributed by RHEL.

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