Advisory

GHSA-3f95-r44v-8mrg

Also known as: CVE-2022-24433

Summary

Command injection in simple-git

Details

The package simple-git before 3.3.0 is 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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-03-12 00:00 UTC
Modified
2025-01-14 10:56 UTC

Affected packages and fixes

simple-git

npm · All systems

Affected

  • introduced 0, fixed 3.3.0 (semver)

Fixed versions

3.3.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences