Skip to main content

simple-git CVE-2026-102827

| EUVDEUVD-2026-89333 CRITICAL
Command Injection (CWE-77)
2026-09-29 security-advisories@github.com GHSA-858h-whjf-mvg5
9.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Influence push arguments in consuming app
  2. Delivery
    Inject abbreviated --receive-p=/--exe= flag
  3. Exploit
    Bypass detectVulnerableFlags literal match
  4. Execution
    Git expands abbreviation to --receive-pack
  5. Impact
    Execute attacker-selected command locally

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Command injection prevention
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Three conditions must hold simultaneously: (1) the consuming application must forward attacker-influenced values into a simple-git push argument list; (2) the push must target a local or file remote, or an attacker-influenced receive-pack target, so that Git itself invokes the injected command; and (3) the application must rely on the default blockUnsafeOperationsPlugin without having opted into unsafe:{allowUnsafePack:true}. Exploitation specifically uses unambiguous long-option abbreviations (e.g. --receive-p, --receive-pa, --exe) that Git expands but that the literal /--( upload|receive)-pack/ and '--exec' detection patterns fail to match; the clone-side '--u' substring rule is NOT affected and only the push path is vulnerable. LIMITING FACTORS: the attacker cannot exploit a consumer that never exposes push arguments, that pushes only to protected/network remotes without attacker influence, or that has disabled/opted out of the relevant flow - which is why SSVC marks this not automatable.

Impact

Signals conflict sharply here. The input CVSS of 9.8 (AV:N/AC:L/PR:N/UI:N, total CIA impact) frames this as a critical, trivially-remote, unauthenticated RCE, and a public exploit (gist by alon710) plus a confirmed vendor patch (simple-git 4.0.0) support that command execution is real and reproducible. However, every other signal points to constrained, non-opportunistic risk: EPSS is only 0.36% (28th percentile), the issue is NOT in CISA KEV, and CISA's SSVC decision framework rates Exploitation as 'none' and Automatable as 'no' (while agreeing Technical Impact is 'total'). This divergence is explained by the vulnerability class - this is a library-level plugin-bypass (CWE-77) whose exploitability depends entirely on how the *consuming* Node.js application wires simple-git: an attacker must be able to influence the arguments passed into git push, the push must target a local/file remote or attacker-influenced receive-pack, and the app must rely on the default blockUnsafeOperationsPlugin without opting into unsafe:{allowUnsafePack:true}. So the headline 9.8 overstates real-world weaponizability: this is a genuine priority for the specific subset of applications that forward untrusted input into simple-git push operations, but it is not a mass-exploitable internet-facing flaw. The PR:N/AC:L vector reflects the raw bypass, but the practical preconditions (attacker-controlled args + local/file remote) mean real risk is targeted and deployment-specific rather than widespread - consistent with low EPSS and SSVC Exploitation:none.

Exploit ScenarioDerived

A Node.js application uses simple-git with its default unsafe-operations protection and passes some user-influenced value into a git push argument list. An attacker supplies an abbreviated long option such as --receive-p=<command> (instead of the blocked literal --receive-pack=), which slips past detectVulnerableFlags; Git then expands the abbreviation to --receive-pack and executes the attacker's command when pushing to a local/file remote. A public proof-of-concept exists demonstrating the end-to-end bypass via simpleGit().push().

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
1 PoC candidate (unverified) Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Oct 08, 2026

Command injection in simple-git, the Node.js library for running git commands and published on npm, affects all releases before 4.0.0 and allows unauthenticated remote attackers to execute arbitrary commands whenever a consuming application forwards attacker-influenced values into a git push argument list. The library's default blockUnsafeOperationsPlugin matches dangerous options by literal spelling only, so unambiguous Git long-option abbreviations such as --receive-p, --receive-pa and --exe bypass detection, are expanded by Git itself, and reach --receive-pack on a local or file remote where the injected command runs. Publicly available exploit code exists (a published gist plus the detailed upstream advisory proof of concept), but there is no CISA KEV confirmation of active exploitation; EPSS is 0.36% (28th percentile) and SSVC marks the issue Exploitation: none, Automatable: no, because three consumer-specific preconditions must coincide.

Earlier versions of this analysis (1)
v1 Sep 29, 2026 - 19:31 CVSS 8.1

Command injection in simple-git versions prior to 4.0.0 lets attacker-influenced push arguments bypass the default blockUnsafeOperationsPlugin and cause Git to invoke an attacker-selected command. The bypass works because the plugin's detectVulnerableFlags compares parsed option names against literal dangerous spellings, while Git itself accepts unambiguous abbreviations of long options such as --receive-pack or --exec; abbreviated forms therefore slip past the blocklist and reach git push when the target is a local/file remote or an attacker-influenced receive-pack target. The flaw is unauthenticated per the CVSS vector (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) and its real-world risk is gated by a specific integration pattern - the consuming Node.js application must actually expose push arguments to attacker control and rely on the plugin for protection; no public exploit code was identified at time of analysis. A vendor patch exists in simple-git 4.0.0.

RemediationAI

Upgrade to simple-git 4.0.0 (https://github.com/steveukx/git-js/releases/tag/simple-git@4.0.0), which is the vendor-released fix delivered via PR https://github.com/steveukx/git-js/pull/1193 and commit https://github.com/steveukx/git-js/commit/98864c678444d9336357c844efa4fd5a7984c0d7; the v4 branch rejects abbreviated long options outright (throwing GitConfigurationError), filters ambient environment variables into the git child process, and requires a double opt-in (both allowEnvoronment and unsafe.allowUnsafeTemplateDir) for previously implicit unsafe behaviours. Be aware this is a breaking major upgrade: the default export and the simple-git/promise and gitP entry points are removed in favour of the named simpleGit export, so consumer imports must be rewritten, and the stricter environment filtering can silently drop variables such as GIT_TEMPLATE_DIR unless they are explicitly allow-listed. If upgrading immediately is not possible, the effective compensating control is not to rely on the plugin's literal-match filter: canonicalize or reject abbreviated options before they reach simple-git, for example by resolving every long-form option to its canonical name (or blocking any push argument whose option stem matches --receive-, --upload-, --exec, or their unambiguous prefixes) in your own argument-validation layer, and by passing push options through a strict allow-list rather than forwarding raw user input; the trade-off is that this validation must be maintained by the consumer and can break legitimate callers that use abbreviations. Additional lower-cost mitigations with their own limits: avoid pushing to local or file/path remotes derived from untrusted input and restrict pushes to controlled network remotes, which removes the local command-execution path but may not cover attacker-influenced receive-pack targets; and never set unsafe:{allowUnsafePack:true} defensively, since that disables the already-weakened control entirely. Disabling the push argument flow for untrusted callers is the surest stopgap but removes functionality. Consumers that cannot change push handling should treat any exposure of push arguments to external input as a full command-execution risk until they are on 4.0.0.

Affected VersionsENISA

git-js < 4.0.0

Affected Packages

npm simple-git fix: 4.0.0
euvd git_js fix: 4.0.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-77 (improper neutralization of special elements used in a command), specifically a filter-evasion flaw rather than a raw string-concatenation bug. simple-git delegates option inspection to @simple-git/argv-parser, where detectVulnerableFlags compares the parsed flag name against literal patterns - the regex /--(upload|receive)-pack/ (which requires the full '-pack' suffix) and the exact string '--exec'. The token expander returns the literal token as flag.name and uses the per-task flag specification only to determine whether a following value is consumed (needsNext), never to canonicalize the name. Git, however, accepts any unambiguous prefix abbreviation of a long option, so 'push --receive-p=<cmd>' parses with flag.name='--receive-p', fails the literal '-pack' match, is expanded by Git to --receive-pack, and executes <cmd> locally against a local or file remote. The clone path is protected by a separate '--u' substring rule that catches all --upload* abbreviations, but no equivalent stem rule exists for the push-side --receive-* or --exec abbreviations, so only the push path is exposed. The affected CPE cpe:2.3:a:simple-git_project:simple-git:*:*:*:*:*:node.js:*:*:* confirms this is the npm/Node.js package with no version constraint, consistent with EUVD listing 'git-js < 4.0.0'. This is explicitly a residual bypass of the mitigation introduced for CVE-2026-28291, i.e. the same defect class as GHSA-jcxm-m3jx-f287 but on the push path.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.1 HIGH

Arbitrary command execution yields full C:H/I:H/A:H and no auth to the library (PR:N), but exploitation requires the consumer to expose attacker-influenced push args plus a local/file remote, a condition beyond attacker control, so AC:H rather than AC:L.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 8.1 HIGH

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Updated
Oct 08, 2026 - 20:29 vuln.today
v2 - CVSS changed
Severity Changed
Oct 08, 2026 - 20:22 NVD
HIGH CRITICAL
CVSS changed
Oct 08, 2026 - 20:22 NVD
8.1 (HIGH) 9.8 (CRITICAL)
Patch available
Sep 29, 2026 - 20:04 EUVD
CVE Published
Sep 29, 2026 - 19:17 cve.org
HIGH 8.1

DescriptionNVD

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.

Technical POC Analysis

CWE-77 command injection (the advisory also tags CWE-88, argument injection).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

simple-git, a widely used Node.js library for executing git commands, contains a critical command injection flaw (CVE-2026-102827) in all versions before 4.0.0 that can allow arbitrary command execution on systems hosting affected applications. Publicly available exploit code exists, and while exploitation requires three specific application-level preconditions, a successful attack could compromise the host and its data. Leadership should prioritize remediation because simple-git is a common transitive dependency in many Node.js services.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 72% exploitable
Prevalence
High
extremely popular npm git-wrapper library with millions of weekly downloads
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

69
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy