Vulnerability Details : CVE-2022-21223
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.
Products affected by CVE-2022-21223
- cpe:2.3:a:cocoapods:cocoapods-downloader:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-21223
0.13%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 48 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-21223
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | AV:N/AC:L/Au:N/C:P/I:P/A:P |
10.0
|
6.4
|
NIST | |
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST | |
8.1
|
HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
2.2
|
5.9
|
Snyk |
CWE ids for CVE-2022-21223
-
The product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string.Assigned by: nvd@nist.gov (Primary)
References for CVE-2022-21223
-
https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414280
Command Injection in cocoapods-downloader | CVE-2022-21223 | SnykThird Party Advisory
-
https://github.com/CocoaPods/cocoapods-downloader/pull/127
Switches where we check for invalid input, to move it inside the download function by orta · Pull Request #127 · CocoaPods/cocoapods-downloader · GitHubPatch;Third Party Advisory
Jump to