8.1high
Command Injection
- Severity
- 8.1high CVSS:3.1 by snyk
- Exploit likelihood
- 1.69% (higher than 77% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-g397-v4w5-4m79SNYK-RUBY-COCOAPODSDOWNLOADER-2414280
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| cocoapods-downloader | from unspecified before 1.6.2 | CVE List |
| cocoapods-downloader (RubyGems) | before 1.6.2 | GitHub Advisory Database |
| cocoapods cocoapods-downloader | before 1.6.2 | NVD |
All scores
| snyk | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
El paquete cocoapods-downloader versiones anteriores a 1.6.2, es vulnerable a la inyección de comandos por medio de una inyección de argumentos hg. Cuando es llamada a la función de descarga (cuando se usa hg), la url (y/o revisión, etiqueta, rama) es pasada al comando hg clone de forma que pueden establecerse flags adicionales. Las flags adicionales pueden ser usadas para llevar a cabo una inyección de comandos
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-21223 changed 2024-09-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-g397-v4w5-4m79 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2022-21223 changed 2026-06-17 | Public domain |