Command injection in cocoapods-downloader
High severity
GitHub Reviewed
Published
Apr 2, 2022
to the GitHub Advisory Database
•
Updated May 4, 2023
Package
Affected versions
< 1.6.0
>= 1.6.2, < 1.6.3
Patched versions
1.6.0
1.6.3
Description
Published by the National Vulnerability Database
Apr 1, 2022
Published to the GitHub Advisory Database
Apr 2, 2022
Reviewed
Apr 4, 2022
Last updated
May 4, 2023
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.
References