Live threats

All CVEs / Simple-git Project

CVE-2026-102827Simple-git Project Simple-git

Remote code execution in Simple-git via option validation bypass

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
—
Auth required
No
Published
Sep 29, 2026
Updated
Oct 8, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-77, CWE-88
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

Simple-git before 4.0.0 fails to properly validate Git option abbreviations, allowing malicious arguments in push operations to bypass dangerous command detection. An attacker can execute arbitrary commands on systems exposing attacker-influenced push arguments through a local or attacker-controlled remote repository.

Show the original NVD text

simple-git, an interface for running git commands in any node.js application, enables applications to execute Git operations from JavaScript. Prior to 4.0.0, the default blockUnsafeOperationsPlugin compares parsed option names with literal dangerous option spellings while Git accepts unambiguous long-option abbreviations. Attacker-influenced push arguments such as abbreviated --receive-pack or --exec forms can therefore bypass detectVulnerableFlags, reach git push against a local or file remote or an attacker-influenced receive-pack target, and cause Git to invoke an attacker-selected command in consumers that expose those arguments. The clone-side abbreviation handling does not protect the push path. This issue is fixed in 4.0.0.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 4.0.0

Update simple-git to version 4.0.0 or later to apply enhanced Git option validation.

Vendor advisory · github.com ↗

  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 < 4.0.0 4.0.0 npm install simple-git@4.0.0

Per OSV / GitHub Advisories (GHSA-858h-whjf-mvg5). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
simple-git_projectsimple-git< 4.0.0

Official sources

References

Links published by the sources. Open them with care.