Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInfluence push arguments in consuming app
-
DeliveryInject abbreviated --receive-p=/--exe= flag
-
ExploitBypass detectVulnerableFlags literal match
-
ExecutionGit expands abbreviation to --receive-pack
-
ImpactExecute 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(). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – 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)
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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
5DescriptionNVD
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
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
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-89333
GHSA-858h-whjf-mvg5
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB