{"id":"CVE-2022-24440","aliases":["CVE-2022-24440","GHSA-7627-mp87-jf6q","SNYK-RUBY-COCOAPODSDOWNLOADER-2414278"],"related":[],"kind":"vulnerability","state":"published","title":"Command Injection","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"El paquete cocoapods-downloader versiones anteriores a 1.6.0, a partir de la 1.6.2 y anteriores a 1.6.3 son vulnerables a la inyección de comandos por medio de una inyección de argumentos git. Cuando es llamada a la función Pod::Downloader.preprocess_options y es usado git, tanto el parámetro git como el de la rama son pasados al subcomando git ls-remote de forma que pueden establecerse flags adicionales. Las flags adicionales pueden usarse para llevar a cabo una inyección de comandos","source":"nvd"}],"published":"2022-04-01T17:35:13.314Z","modified":"2026-07-08T06:50:04.049Z","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.0","status":"affected"},{"type":"custom","introduced":"1.6.2","fixed":"unspecified","status":"affected"},{"type":"custom","introduced":"unspecified","fixed":"1.6.3","status":"affected"}],"product":"cocoapods-downloader","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.6.0"}],"ecosystem":"RubyGems","package":"cocoapods-downloader","purl":"pkg:gem/cocoapods-downloader","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.6.2","status":"affected","fixed":"1.6.3"}],"ecosystem":"RubyGems","package":"cocoapods-downloader","purl":"pkg:gem/cocoapods-downloader","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.6.0"},{"status":"affected","version":"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-2414278","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/CocoaPods/cocoapods-downloader/pull/124","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/CocoaPods/cocoapods-downloader/pull/128","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24440","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/CocoaPods/cocoapods-downloader/commit/52a0d54464932a90ded5a59c71a016e8dec0ca84","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/CocoaPods/cocoapods-downloader/commit/b70bc39c75645aa6d4a01a3ca6de40477c84f4b5","tags":["web"],"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-24440.yml","tags":["web"],"sources":["ghsa"]}],"credits":["Alessio Della Libera of Snyk Research Team"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-24440","url":"https://www.cve.org/CVERecord?id=CVE-2022-24440","licence":"CVE Terms of Use","modified":"2024-09-17T03:22:48.708Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7627-mp87-jf6q","url":"https://github.com/advisories/GHSA-7627-mp87-jf6q","licence":"CC-BY-4.0","modified":"2026-07-08T06:50:04.049Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-24440","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24440","licence":"Public domain","modified":"2026-06-17T04:31:50.930Z"}],"updatedAt":"2026-11-25T22:58:10.362Z","epss":{"score":0.03035,"percentile":0.88259,"date":"2026-11-30T12:00:22.000Z"}}