Skip to content
OpenAdvisories
High · 8.1 CVE-2022-24433 EUVD-2022-1286GHSA-3f95-r44v-8mrg

Command Injection

Published Mar 11, 2022 · Updated Sep 16, 2024 · Assigned by snyk

Description

The package simple-git before 3.3.0 are vulnerable to Command Injection via argument injection. When calling the .fetch(remote, branch, handlerFn) function, both the remote and branch parameters are passed to the git fetch subcommand. By injecting some git options it was possible to get arbitrary command execution.

Affected products

VendorProductAffectedFixed
— simple-git unspecified – < 3.3.0 3.3.0

Affected packages

EcosystemPackageAffectedFixedRecord
npm simple-git < 3.3.0 3.3.0 GHSA-3f95-r44v-8mrg

References