Command Injection
cve-program · CVE-2022-21235
PublishedThe 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.
Read the publisher's advisoryeuvd · EUVD-2022-1643
PublishedThe 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.
Read the publisher's advisorynvd · CVE-2022-21235
PublishedThe 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.
Read the publisher's advisoryosv · GHSA-6635-c626-vj4r
PublishedURLs and local file paths passed to the Mercurial (hg) APIs that are specially crafted can contain commands which are executed by Mercurial if it is installed on the host operating system. The `vcs` package uses the underly version control system, in this case `hg`, to implement the needed functionality. 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. Other version control systems with an implemented interface may also be vulnerable. The issue has been fixed in version 1.13.2. A work around is to sanitize data passed to the `vcs` package APIs to ensure it does not contain commands or unexpected data. This is important for user input data that is passed directly to the package APIs.
Read the publisher's advisoryosv · GO-2022-0414
PublishedPassing untrusted inputs to VCS functions can permit an attacker to execute arbitrary commands. The vcs package executes version control commands with user-provided arguments. These arguments can be interpreted as command-line flags, which can be used to perform command injection.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2022-21235 · CVE overview and exploitation status
SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078
cve-program · CVE-2022-21235
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078
- https://github.com/Masterminds/vcs/pull/105
euvd · EUVD-2022-1643
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078
- https://github.com/Masterminds/vcs/pull/105
nvd · CVE-2022-21235
- https://github.com/Masterminds/vcs/pull/105
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078
osv · GHSA-6635-c626-vj4r
- https://github.com/Masterminds/vcs/security/advisories/GHSA-6635-c626-vj4r
- https://nvd.nist.gov/vuln/detail/CVE-2022-21235
- https://github.com/Masterminds/vcs/pull/105
- https://github.com/Masterminds/vcs/commit/922a5122330ea8fbe56352a0172ddb6bf019cd22
- https://github.com/Masterminds/vcs
- https://github.com/Masterminds/vcs/releases/tag/v1.13.2
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078
osv · GO-2022-0414
Related changes
Linked by CVE identifierNo related changes are available here.