The package cocoapods-downloader before 1.6.2 are vulnerable to Command Injection via hg argument injection. When calling the download function (when using hg), the url (and/or revision, tag, branch) is passed to the hg clone command in a way that additional flags can be set. The additional flags can be used to perform a command injection.
{
"cwe_ids": [
"CWE-74",
"CWE-88"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2022-04-01T18:15:00Z",
"github_reviewed_at": "2022-04-04T21:57:37Z"
}