#VU84822 Improper Neutralization of Argument Delimiters in a Command in cocoapods-downloader - CVE-2022-21223


Vulnerability identifier: #VU84822

Vulnerability risk: High

CVSSv4.0: 8.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2022-21223

CWE-ID: CWE-88

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
cocoapods-downloader
Universal components / Libraries / Libraries used by multiple products

Vendor: CocoaPods

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to the url (and/or revision, tag, branch) is passed to the hg clone command in a way that additional flags can be set when calling the download function (when using hg). A remote unauthenticated attacker can trigger the vulnerability to perform a command injection.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

cocoapods-downloader: before 1.6.2


External links
https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414280
https://github.com/CocoaPods/cocoapods-downloader/pull/127


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability