cve/2022/CVE-2022-21235.md

19 lines
868 B
Markdown
Raw Normal View History

2024-05-25 21:48:12 +02:00
### [CVE-2022-21235](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21235)
![](https://img.shields.io/static/v1?label=Product&message=github.com%2FMasterminds%2Fvcs&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3C%201.13.3%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=Command%20Injection&color=brighgreen)
### 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.
### POC
#### Reference
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078
#### Github
- https://github.com/ARPSyndicate/cvemon
- https://github.com/dellalibera/dellalibera