{"cve":"CVE-2022-21223","nvd":{"published":"2022-04-01T18:15:08.603","modified":"2026-06-17T04:25:47.003","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-88"],"references":["https://github.com/CocoaPods/cocoapods-downloader/pull/127","https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414280","https://github.com/CocoaPods/cocoapods-downloader/pull/127","https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414280"],"products":["cocoapods:cocoapods-downloader"],"source":"nvd","synced_at":"2026-10-19T21:29:06.454770966+00:00"},"epss":{"cve":"CVE-2022-21223","score":0.01687,"percentile":0.77037,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-g397-v4w5-4m79","url":"https://osv.dev/vulnerability/GHSA-g397-v4w5-4m79","summary":"Command injection in cocoapods-downloader","modified":"2026-07-08T06:50:01.938540582Z","packages":[{"ecosystem":"RubyGems","name":"cocoapods-downloader","purl":"pkg:gem/cocoapods-downloader","ranges":["<1.6.2"],"fixed":["1.6.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}