{"id":"CVE-2022-21223","aliases":["CVE-2022-21223","GHSA-g397-v4w5-4m79","SNYK-RUBY-COCOAPODSDOWNLOADER-2414280"],"related":[],"kind":"vulnerability","state":"published","title":"Command Injection","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"El paquete cocoapods-downloader versiones anteriores a 1.6.2, es vulnerable a la inyección de comandos por medio de una inyección de argumentos hg. Cuando es llamada a la función de descarga (cuando se usa hg), la url (y/o revisión, etiqueta, rama) es pasada al comando hg clone de forma que pueden establecerse flags adicionales. Las flags adicionales pueden ser usadas para llevar a cabo una inyección de comandos","source":"nvd"}],"published":"2022-04-01T17:35:21.022Z","modified":"2026-07-08T06:50:01.938Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-74","CWE-88"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.6.2","status":"affected"}],"product":"cocoapods-downloader","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.6.2"}],"ecosystem":"RubyGems","package":"cocoapods-downloader","purl":"pkg:gem/cocoapods-downloader","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.6.2"}],"vendor":"cocoapods","product":"cocoapods-downloader","cpe":"cpe:2.3:a:cocoapods:cocoapods-downloader:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414280","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/CocoaPods/cocoapods-downloader/pull/127","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21223","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/CocoaPods/cocoapods-downloader","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cocoapods-downloader/CVE-2022-21223.yml","tags":["web"],"sources":["ghsa"]}],"credits":["Alessio Della Libera of Snyk Research Team"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-21223","url":"https://www.cve.org/CVERecord?id=CVE-2022-21223","licence":"CVE Terms of Use","modified":"2024-09-17T00:42:09.592Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g397-v4w5-4m79","url":"https://github.com/advisories/GHSA-g397-v4w5-4m79","licence":"CC-BY-4.0","modified":"2026-07-08T06:50:01.938Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-21223","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21223","licence":"Public domain","modified":"2026-06-17T04:25:47.003Z"}],"updatedAt":"2026-11-25T22:58:10.361Z","epss":{"score":0.01687,"percentile":0.77718,"date":"2026-12-01T12:00:22.000Z"}}