CVE-2025-61731

Aliases:GO-2026-4339BIT-golang-2025-61731
Analyzed
Published: 28 Jan 2026, 19:30
Last modified:20 Jul 2026, 12:04

Vulnerability Summary

Overall Risk (default)
medium
31/100
CVSS Score
7.8 HIGH
v3.1 (cve.org)
EPSS Score
0.53% LOW
1% probability +0.52%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

28 Jan 2026, 19:30
Published
Vulnerability first disclosed
20 Jul 2026, 12:04
Last Modified
Vulnerability information updated

Description

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 Metrics

  • v3.1HIGHScore: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS Trends

Current EPSS score: 0.53% Percentile: 41%

Techniques & Countermeasures

  • CWE-88Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

    The product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string.

Affected Systems

  • go toolchaincmd/go

    < 1.24.12 | ≥ 1.25.0, < 1.25.6

  • golanggo

    < 1.24.12 | ≥ 1.25.0, < 1.25.6

  • Gotoolchain

    ≥ 1.25.0, < 1.25.6

References (40)