High severityNVD Advisory· Published Apr 1, 2022· Updated Sep 17, 2024
Command Injection
CVE-2022-21223
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
cocoapods-downloaderRubyGems | < 1.6.2 | 1.6.2 |
Affected products
2- cocoapods-downloader/cocoapods-downloaderdescription
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-g397-v4w5-4m79ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-21223ghsaADVISORY
- github.com/CocoaPods/cocoapods-downloader/pull/127ghsax_refsource_MISCWEB
- github.com/rubysec/ruby-advisory-db/blob/master/gems/cocoapods-downloader/CVE-2022-21223.ymlghsaWEB
- snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414280ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.