{"id":"CVE-2022-24440","summary":"Command Injection","details":"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.","aliases":["GHSA-7627-mp87-jf6q","SNYK-RUBY-COCOAPODSDOWNLOADER-2414278"],"modified":"2026-08-12T03:51:16.534500697Z","published":"2022-04-01T17:35:13.314Z","database_specific":{"cna_assigner":"snyk","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24440.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24440.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24440"},{"type":"ADVISORY","url":"https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414278"},{"type":"FIX","url":"https://github.com/CocoaPods/cocoapods-downloader/pull/124"},{"type":"FIX","url":"https://github.com/CocoaPods/cocoapods-downloader/pull/128"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cocoapods/cocoapods-downloader","events":[{"introduced":"0"},{"fixed":"e53d02304426c3f7b0f725371c8a5594cecf9be4"},{"introduced":"591167a841c64ca1ae9a8b411c1d1bdffc3bf285"},{"last_affected":"591167a841c64ca1ae9a8b411c1d1bdffc3bf285"}],"database_specific":{"source":["CPE_RANGE","CPE_STRING"],"cpe":["cpe:2.3:a:cocoapods:cocoapods-downloader:*:*:*:*:*:*:*:*","cpe:2.3:a:cocoapods:cocoapods-downloader:1.6.2:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"0"},{"fixed":"1.6.0"},{"introduced":"1.6.2"},{"last_affected":"1.6.2"}]}}],"versions":["1.6.2","1.4.0","1.2.2","1.2.1","1.1.3","1.1.2","1.0.0.rc.1","1.0.0.beta.3","1.0.0.beta.2","1.0.0.beta.1","0.9.3","0.9.2","0.9.1","0.9.0","0.8.1","0.8.0","0.7.2","v0.7.1","v0.7.0","0.6.1","0.6.0","0.5.0","0.4.1","0.4.0","0.3.0","0.2.0","0.1.2","0.1.1","0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-24440.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}