Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/Masterminds/vcs
  4. ›
  5. CVE-2022-21235

CVE-2022-21235: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

April 1, 2022 (updated April 5, 2022)

The package github.com/masterminds/vcs before 1.13.3 is 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.

References

  • github.com/Masterminds/vcs/commit/922a5122330ea8fbe56352a0172ddb6bf019cd22
  • github.com/Masterminds/vcs/pull/105
  • github.com/Masterminds/vcs/releases/tag/v1.13.2
  • github.com/Masterminds/vcs/security/advisories/GHSA-6635-c626-vj4r
  • github.com/advisories/GHSA-6635-c626-vj4r
  • nvd.nist.gov/vuln/detail/CVE-2022-21235
  • snyk.io/vuln/SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078

Code Behaviors & Features

Detect and mitigate CVE-2022-21235 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.13.2

Fixed versions

  • v1.13.2

Solution

Upgrade to version 1.13.2 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

go/github.com/Masterminds/vcs/CVE-2022-21235.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:58 +0000.