Vulnerability Details : CVE-2022-24440
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.
Products affected by CVE-2022-24440
- cpe:2.3:a:cocoapods:cocoapods-downloader:*:*:*:*:*:*:*:*
- cpe:2.3:a:cocoapods:cocoapods-downloader:1.6.2:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-24440
0.24%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 63 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-24440
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-24440
-
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-24440
-
https://github.com/CocoaPods/cocoapods-downloader/pull/128
Ensure that the git pre-processor doesn't accidentally bail also by orta · Pull Request #128 · CocoaPods/cocoapods-downloader · GitHubPatch;Third Party Advisory
-
https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414278
Command Injection in cocoapods-downloader | CVE-2022-24440 | SnykThird Party Advisory
-
https://github.com/CocoaPods/cocoapods-downloader/pull/124
Adds a check for command injections in the input for hg and git by orta · Pull Request #124 · CocoaPods/cocoapods-downloader · GitHubPatch;Third Party Advisory
Jump to