{"id":"CVE-2022-24440","published":"2022-04-01T17:35:13Z","modified":"2024-09-17T03:22:48Z","title":"Command Injection","vendor":null,"product":null,"tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0262,"percentile":0.8583,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414278","tags":["x_refsource_MISC"]},{"url":"https://github.com/CocoaPods/cocoapods-downloader/pull/124","tags":["x_refsource_MISC"]},{"url":"https://github.com/CocoaPods/cocoapods-downloader/pull/128","tags":["x_refsource_MISC"]}],"priority":{"score":22.8,"factors":[{"name":"EPSS percentile","points":17.17},{"name":"CVSS severity","points":5.67}]},"affectedVersions":[{"vendor":"n/a","product":"cocoapods-downloader","versions":[">= unspecified, < 1.6.0",">= 1.6.2, < unspecified",">= unspecified, < 1.6.3"]}],"affected":[{"ecosystem":"RubyGems","package":"cocoapods-downloader","vulnerableRanges":["<1.6.0",">=1.6.2, <1.6.3"],"patched":["1.6.0","1.6.3"],"from":["GHSA-7627-mp87-jf6q"],"provenance":"source"}],"summary":{"text":"The cocoapods-downloader package (versions before 1.6.0, and 1.6.2 before 1.6.3) contains a command injection flaw in Pod::Downloader.preprocess_options, where the git and branch parameters are passed unsafely to the git ls-remote subcommand. An attacker who can supply those parameters can inject additional git flags that lead to arbitrary command execution, and the attack requires network access and no authentication, though it is of high complexity and the attack vector is network-based.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:40Z"},"euvd":{"id":"EUVD-2022-1661","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-21223","published":"2022-04-01","fixed":"1.6.2","kev":false,"link":{"from":"CVE-2022-21223","to":"CVE-2022-24440","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:cocoapods-downloader","fromFixed":"1.6.2","toFixed":"1.6.3","daysApart":0},{"kind":"version-step","provenance":"source","package":"RubyGems:cocoapods-downloader","fromFixed":"1.6.0","toFixed":"1.6.2","daysApart":0},{"kind":"similar","provenance":"machine","score":0.64,"basis":"same package + description similarity"}]}},{"cve":"CVE-2022-24440","published":"2022-04-01","fixed":"1.6.3","kev":false}],"package":"RubyGems:cocoapods-downloader"}}