Live threats

All CVEs / Vcs Project

CVE-2022-21235Vcs Project Vcs

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
2.1%
probability of exploitation in 30 days · percentile 83
Auth required
No
Published
Apr 1, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-88
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Vcs.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/Masterminds/vcs < 1.13.2 1.13.2 go get github.com/Masterminds/vcs@v1.13.2
Go github.com/Masterminds/vcs < 1.13.3 1.13.3 go get github.com/Masterminds/vcs@v1.13.3

Per OSV / GitHub Advisories (GHSA-6635-c626-vj4r, GO-2022-0414). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
vcs_projectvcs< 1.1.13

Official sources

References

Links published by the sources. Open them with care.