CVE-2022-21223
JSON

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 packageVersionsReported by
cocoapods-downloaderfrom unspecified before 1.6.2CVE List
cocoapods-downloader (RubyGems)before 1.6.2GitHub Advisory Database
cocoapods cocoapods-downloaderbefore 1.6.2NVD

All scores

snyk8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV: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

SourceRecordLicence
CVE ListCVE-2022-21223 changed 2024-09-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-g397-v4w5-4m79 changed 2026-07-08CC-BY-4.0
NVDCVE-2022-21223 changed 2026-06-17Public domain