Arbitrary Argument Injection Affecting go-toolset:rhel8/golang-bin package, versions <0:1.17.13-15.module+el8.6.0+24195+22baade4


Severity

Recommended
0.0
high
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.01% (2nd 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-RHEL8-GOTOOLSET-16073545
  • published15 Apr 2026
  • disclosed28 Jan 2026

Introduced: 28 Jan 2026

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

How to fix?

Upgrade RHEL:8 go-toolset:rhel8/golang-bin to version 0:1.17.13-15.module+el8.6.0+24195+22baade4 or higher.
This issue was patched in RHSA-2026:7876.

NVD Description

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

CVSS Base Scores

version 3.1