---
id: CVE-2026-6951
title: >-
  Versions of the package simple-git before 3.36.0 are vulnerable to Remote Code
  Execution (RCE) due to an incomplete fix for
  [CVE-2022-25912](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-3112221) that
  blocks the -c option but not the e…
summary: >-
  Versions of the package simple-git before 3.36.0 are vulnerable to Remote Code
  Execution (RCE) due to an incomplete fix for
  [CVE-2022-25912](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-3112221) that
  blocks the -c option but not the e…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
  - CWE-88
vendor: simple-git_project
product: simple-git
affected:
  - 'simple-git >= 3.15.0, < 3.36.0'
patched:
  - simple-git 3.36.0
published: '2026-04-25'
updated: '2026-06-29'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-6951'
references:
  - url: 'https://gist.github.com/KKC73/02d1d97f3410756095b501fda0ac8ca6'
    label: report@snyk.io
  - url: >-
      https://github.com/steveukx/git-js/commit/89a2294febed5dfe737c4c735d936bb6018746a8
    label: report@snyk.io
  - url: 'https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-16300211'
    label: report@snyk.io
  - url: 'https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-15456078'
    label: report@snyk.io
  - url: 'https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-15456078'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6951.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-6951'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2461750'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-6951'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-6951'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
  - cve.org
  - exploit-available
epss: 0.01006
epssPercentile: 0.61408
ingestedAt: '2026-06-29T21:48:47.444Z'
scores:
  nvd: 9.8
  vendor: 8.8
  cna: 9.8
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-04-25T10:50:10.217564Z'
---

## Overview

Versions of the package simple-git before 3.36.0 are vulnerable to Remote Code Execution (RCE) due to an incomplete fix for [CVE-2022-25912](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-3112221) that blocks the -c option but not the equivalent --config form. If untrusted input can reach the options argument passed to simple-git, an attacker may still achieve remote code execution by enabling protocol.ext.allow=always and using an ext:: clone source.

## Affected

- `simple-git >= 3.15.0, < 3.36.0`

## Remediation

Upgrade past the affected range:

- `simple-git 3.36.0`

## Vendor advisories

- **Red Hat VEX** · Important · affected: Red Hat Enterprise Linux 8 · no fix planned: Red Hat Enterprise Linux 8 · updated 2026-09-12 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6951.json)
