CVE-2022-21223
Dashboard / Vulnerabilities / CVE-2022-21223
CVE-2022-21223
Published: 1 Apr 2022Last Modified: 12 Aug 2026
Summary: Command Injection
Details: 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.
References: https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21223.json, https://nvd.nist.gov/vuln/detail/CVE-2022-21223, https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414280, https://github.com/CocoaPods/cocoapods-downloader/pull/127
Affected packages
Package
Name:
Purl:
Affected ranges
Affected versions
1.6.1
1.6.0
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
