The package cocoapods-downloader before 1.6.0, from 1.6.2 and before 1.6.3 are vulnerable to Command Injection via git argument injection. When calling the Pod::Downloader.preprocess_options function and using git, both the git and branch parameters are passed to the git ls-remote subcommand in a way that additional flags can be set. The additional flags can be used to perform a command injection.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24440.json",
"cna_assigner": "snyk"
}{
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "1.6.0"
},
{
"introduced": "1.6.2"
},
{
"last_affected": "1.6.2"
}
],
"source": [
"CPE_RANGE",
"CPE_STRING"
],
"cpe": [
"cpe:2.3:a:cocoapods:cocoapods-downloader:*:*:*:*:*:*:*:*",
"cpe:2.3:a:cocoapods:cocoapods-downloader:1.6.2:*:*:*:*:*:*:*"
]
}