Command Injection Affecting snyk-go-plugin package, versions <1.19.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.08% (37th 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 Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-SNYKGOPLUGIN-3037316
  • published30 Sept 2022
  • disclosed30 Sept 2022
  • creditRon Masas, Imperva

Introduced: 30 Sep 2022

CVE-2022-40764  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade snyk-go-plugin to version 1.19.1 or higher.

Overview

snyk-go-plugin is a Snyk plugin that provides metadata for Golang projects.

Affected versions of this package are vulnerable to Command Injection via the snyk-go-plugin which is used by the Snyk CLI tool.

A successful exploit, allows attackers to run arbitrary commands on the host system where the Snyk CLI is installed. In order to exploit this vulnerability, a target would have to execute the “snyk test” command on untrusted files. As developers are unlikely to run "snyk test" on untrusted files, an attacker might have to trick them into opening a malicious file before running "snyk test".

CVSS Scores

version 3.1