Live threats

All CVEs / Simple-git Project

CVE-2022-24433Simple-git Project Simple-git

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
5.0%
probability of exploitation in 30 days · percentile 93
Auth required
No
Published
Mar 11, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-88
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Simple-git.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm simple-git < 3.3.0 3.3.0 npm install simple-git@3.3.0

Per OSV / GitHub Advisories (GHSA-3f95-r44v-8mrg). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
simple-git_projectsimple-git< 3.3.0

Official sources

References

Links published by the sources. Open them with care.