Vulnerability in Cocoapods Cocoapods-Downloader
CVE-2022-21223
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.017, 77.4th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Cocoapods Cocoapods-Downloader
- Cocoapods-Downloader — versions unspecified
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (dellalibera/dellalibera). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414280 (Third Party Advisory)
- github.com/CocoaPods/cocoapods-downloader/pull/127 (Patch, Third Party Advisory)