Skip to main content

Go CVE-2025-61731

HIGH
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
2026-01-28 security@golang.org
7.8
CVSS 3.1 · Vendor: golang
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
Impact

CVSS 7.8 (HIGH). Attack vector: Local. Complexity: Low. Privileges required: Low. User interaction: None.

Exploit ScenarioDerived

An attacker could exploit this vulnerability to compromise the affected system.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 12, 2026

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. [CVSS 7.8 HIGH]

RemediationAI

A vendor patch is available — apply it immediately.

Affected Packages

go toolchain fix: 1.24.12, 1.25.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Affects Go. 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.

Know when Go gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (golang) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SUSE HIGH
Red Hat 8.6 HIGH

Primary rating from Vendor (golang).

CVSS VectorVendor: golang

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch released
Feb 06, 2026 - 18:43 nvd
Patch available
CVE Published
Jan 28, 2026 - 20:16 nvd
HIGH 7.8

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2025-61731 affects organizations using Go for software development, potentially allowing attackers to manipulate build processes and write malicious content to arbitrary files during compilation. This could compromise the integrity of built applications and supply chain security, particularly for teams building Go-based software products or services.

Business Impact: High
Compensating Controls

Apply vendor patch. Additional controls: implement code review procedures requiring approval for #cgo directives, restrict pkg-config access in build environments through network segmentation, and enable build log auditing to detect suspicious file write operations.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*

More in Go

View all
CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2016-5386 HIGH
8.1 Jul 19

The net/http package in Go through 1.6 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and there

CVE-2025-68121 CRITICAL POC
10.0 Feb 05

Critical certificate validation bypass in Go crypto/tls during session resumption. If ClientCAs or RootCAs fields are mu

CVE-2019-14809 CRITICAL POC
9.8 Aug 13

net/url in Go before 1.11.13 and 1.12.x before 1.12.8 mishandles malformed hosts in URLs, leading to an authorization by

CVE-2026-90942 CRITICAL POC
9.3 Sep 14

Casdoor through 4.4.0 exposes its instance-wide built-in JWT signing private key unmasked through the /api/get-certs and

CVE-2026-101090 CRITICAL POC
9.3 Sep 27

Host header injection in Nezha 2.2.3's OAuth2 redirect endpoint (/api/v1/oauth2/{provider}) allows an unauthenticated re

CVE-2026-78428 HIGH POC
8.8 Sep 17

Session cross-wiring in SUSE NeuVector before 5.6.1 allows an unauthenticated remote attacker to obtain another user's a

CVE-2026-92791 HIGH POC
8.7 Sep 16

Unauthenticated path traversal in Uber Kraken through 0.1.29 allows remote attackers to read files outside the configure

CVE-2018-7187 HIGH POC
8.8 Feb 16

The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used, does not validate the import pa

CVE-2026-16651 HIGH POC
8.7 Sep 21

Denial of service in Temporal Server allows an authenticated caller holding at least namespace read permission to crash

CVE-2026-82405 HIGH POC
8.7 Sep 23

Account takeover in Klever-Go's KleverUpdateAccountPermission built-in (all versions prior to 1.7.20) allows an attacker

CVE-2026-82409 HIGH POC
8.4 Sep 23

Maliciously crafted on-chain account names processed by Klever-Go prior to 1.7.20 are spliced into Elasticsearch _bulk r

Vendor StatusVendor

SUSE

Severity: High
Product Status
Container suse/sl-micro/6.0/baremetal-os-container:2.1.3-4.34 Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.7 Container suse/sl-micro/6.0/toolbox:13.2-9.2 Image SL-Micro Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-4.34 Container suse/sl-micro/6.0/rt-os-container:2.1.3-5.33 Affected
Container suse/sl-micro/6.1/baremetal-os-container:2.2.1-7.35 Affected
Container suse/sl-micro/6.1/base-os-container:2.2.1-5.57 Affected

References

Advisories & patches
PATCH https://go.dev/cl/736711 ADVISORY https://access.redhat.com/errata/RHSA-2026:3556 ADVISORY https://access.redhat.com/errata/RHSA-2026:3559 ADVISORY https://access.redhat.com/errata/RHSA-2026:3855 ADVISORY https://access.redhat.com/errata/RHSA-2026:4434 ADVISORY https://access.redhat.com/errata/RHSA-2026:5133 ADVISORY https://access.redhat.com/errata/RHSA-2026:5907 ADVISORY https://access.redhat.com/errata/RHSA-2026:5941 ADVISORY https://access.redhat.com/errata/RHSA-2026:5942 ADVISORY https://access.redhat.com/errata/RHSA-2026:5943 ADVISORY https://access.redhat.com/errata/RHSA-2026:5944 ADVISORY https://access.redhat.com/errata/RHSA-2026:5948 ADVISORY https://access.redhat.com/errata/RHSA-2026:5950 ADVISORY https://access.redhat.com/errata/RHSA-2026:5952 ADVISORY https://pkg.go.dev/vuln/GO-2026-4339 ADVISORY https://vuldb.com/?id.343293 ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0218/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0219/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0296/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0297/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0298/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0308/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0354/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20122/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20132/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20623/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20629/ REF https://access.redhat.com/errata/RHSA-2026:12118 REF https://access.redhat.com/errata/RHSA-2026:12282 REF https://access.redhat.com/errata/RHSA-2026:13736 REF https://access.redhat.com/errata/RHSA-2026:14100 REF https://access.redhat.com/errata/RHSA-2026:14774 REF https://access.redhat.com/errata/RHSA-2026:15091 REF https://access.redhat.com/errata/RHSA-2026:17598 REF https://access.redhat.com/errata/RHSA-2026:20088 REF https://access.redhat.com/errata/RHSA-2026:21691 REF https://access.redhat.com/errata/RHSA-2026:6949 REF https://access.redhat.com/errata/RHSA-2026:7291 REF https://access.redhat.com/errata/RHSA-2026:7385 REF https://access.redhat.com/errata/RHSA-2026:7833 REF https://access.redhat.com/errata/RHSA-2026:7834 REF https://access.redhat.com/errata/RHSA-2026:7876 REF https://access.redhat.com/errata/RHSA-2026:7877 REF https://access.redhat.com/errata/RHSA-2026:7878 REF https://access.redhat.com/errata/RHSA-2026:7879 REF https://access.redhat.com/errata/RHSA-2026:7883 REF https://access.redhat.com/errata/RHSA-2026:8448 REF https://access.redhat.com/security/cve/CVE-2025-61731 REF https://bugzilla.redhat.com/show_bug.cgi?id=2434433 REF https://go.dev/issue/77100 REF https://groups.google.com/g/golang-announce/c/Vd2tYVM8eUc REF https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-61731.json

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy