Skip to main content
← All vulnerabilities
CVE-2022-24433GHSA-3F95-R44V-8MRG

Command Injection

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.3.0
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a simple-git

    fixed in 3.3.0

  • simple-gitnpm

    fixed in 3.3.0

References 4

snyk.io

GitHub · steveukx/git-js