# CVE-2022-24440: Command Injection

- Severity: High 8.1 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.03%, higher than 88% of CVEs (2026-11-30)
- Published: 2022-04-01T17:35:13.314Z
- Modified: 2026-07-08T06:50:04.049Z
- Also known as: GHSA-7627-mp87-jf6q, SNYK-RUBY-COCOAPODSDOWNLOADER-2414278
- Weaknesses: CWE-74, CWE-88
- Assigned by: snyk

## Description

The package cocoapods-downloader before 1.6.0, from 1.6.2 and before 1.6.3 are vulnerable to Command Injection via git argument injection. When calling the Pod::Downloader.preprocess_options function and using git, both the git and branch parameters are passed to the git ls-remote subcommand in a way that additional flags can be set. The additional flags can be used to perform a command injection.

(As written by CVE List.)

## Affected

- cocoapods-downloader: from unspecified before 1.6.0; from 1.6.2 before unspecified; from unspecified before 1.6.3
- cocoapods-downloader (RubyGems): before 1.6.0; from 1.6.2 before 1.6.3
- cocoapods cocoapods-downloader: before 1.6.0; 1.6.2

## Every score

- snyk: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414278> (third-party-advisory, web)
- <https://github.com/CocoaPods/cocoapods-downloader/pull/124> (patch, third-party-advisory, web)
- <https://github.com/CocoaPods/cocoapods-downloader/pull/128> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24440> (advisory)
- <https://github.com/CocoaPods/cocoapods-downloader/commit/52a0d54464932a90ded5a59c71a016e8dec0ca84> (web)
- <https://github.com/CocoaPods/cocoapods-downloader/commit/b70bc39c75645aa6d4a01a3ca6de40477c84f4b5> (web)
- <https://github.com/CocoaPods/cocoapods-downloader> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cocoapods-downloader/CVE-2022-24440.yml> (web)

## Sources

- CVE List: [CVE-2022-24440](https://www.cve.org/CVERecord?id=CVE-2022-24440), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-7627-mp87-jf6q](https://github.com/advisories/GHSA-7627-mp87-jf6q), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2022-24440](https://nvd.nist.gov/vuln/detail/CVE-2022-24440), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-24440 · Whole record: https://cve.day/CVE-2022-24440.json · Rebuilt by cve.day 2026-11-25T22:58:10.362Z
