#VU84825 Improper Neutralization of Argument Delimiters in a Command in cocoapods-downloader - CVE-2022-24440


Vulnerability identifier: #VU84825

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-24440

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 both the git and branch parameters are passed to the git ls-remote subcommand in a way that additional flags can be set when calling the Pod::Downloader.preprocess_options function and using git. 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.3


External links
https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414278
https://github.com/CocoaPods/cocoapods-downloader/pull/128
https://github.com/CocoaPods/cocoapods-downloader/pull/124


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