{"id":"CVE-2022-21223","published":"2022-04-01T17:35:21Z","modified":"2024-09-17T00:42:09Z","title":"Command Injection","vendor":null,"product":null,"tier":"tail","description":{"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.","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.01687,"percentile":0.77604,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414280","tags":["x_refsource_MISC"]},{"url":"https://github.com/CocoaPods/cocoapods-downloader/pull/127","tags":["x_refsource_MISC"]}],"priority":{"score":21.2,"factors":[{"name":"EPSS percentile","points":15.52},{"name":"CVSS severity","points":5.67}]},"affectedVersions":[{"vendor":"n/a","product":"cocoapods-downloader","versions":[">= unspecified, < 1.6.2"]}],"affected":[{"ecosystem":"RubyGems","package":"cocoapods-downloader","vulnerableRanges":["<1.6.2"],"patched":["1.6.2"],"from":["GHSA-g397-v4w5-4m79"],"provenance":"source"}],"summary":{"text":"The cocoapods-downloader package, before version 1.6.2, contains a command injection flaw in its Mercurial (hg) download handling, where the url, revision, tag, or branch value is passed to the hg clone command in a way that lets additional flags be injected. An attacker who can supply these values can use the injected flags to execute arbitrary commands, and the attack vector indicates this is reachable over the network, with no privileges or user interaction required, though it involves high attack complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:06:50Z"},"euvd":{"id":"EUVD-2022-1732","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-21223","published":"2022-04-01","fixed":"1.6.2","kev":false},{"cve":"CVE-2022-24440","published":"2022-04-01","fixed":"1.6.3","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"}]}}],"package":"RubyGems:cocoapods-downloader"}}