Vulnerability · Published Apr 1, 2022 · Assigned by snyk

CVE-2022-21235Command Injection

High 8.1

In plain English

A high-severity security flaw in github.com/Masterminds/vcs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 76% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)1.6%top 24.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

The package github.com/masterminds/vcs before 1.13.3 are vulnerable to Command Injection via argument injection. When hg is executed, argument strings are passed to hg in a way that additional flags can be set. The additional flags can be used to perform a command injection.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/Masterminds/vcs1.13.3GO-2022-0414
Gogithub.com/Masterminds/vcs1.13.2GHSA-6635-c626-vj4r

Affected products (as reported)

VendorProductVersions
n/a github.com/Masterminds/vcs unspecified – before 1.13.3

References