Go Vulnerability Database
GO-2022-0414
Command injection in github.com/Masterminds/vcs
Details
Passing 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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/Masterminds/vcs | All versions before 1.13.3 (fixed in 1.13.3) |