---
title: "GHSA-9p95-fxvg-qgq2: simple-git vulnerable to Remote Code Execution when enabling the ext transport protocol"
description: "High severity. simple-git vulnerable to Remote Code Execution when enabling the ext transport protocol. Affects simple-git; fixed in 3.15.0."
url: https://inlinr.com/advisories/GHSA-9p95-fxvg-qgq2
lang: en
---

[Packages](https://inlinr.com/packages) / [simple-git](https://inlinr.com/packages/simple-git) / [Security](https://inlinr.com/packages/simple-git/security)

High Vulnerability GHSA-9p95-fxvg-qgq2 CVE-2022-25912 Published 6 Dec 2022

# simple-git vulnerable to Remote Code Execution when enabling the ext transport protocol

Your version 

Affected releases · [simple-git](https://inlinr.com/packages/simple-git)

- 3.x 3.0.1 – 3.14.1 Fixed in 3.15.0
- 2.x and older 0.0.1 – 2.48.0 No fix, no longer updated

On 3.x, the newest line:

```
npm install simple-git@3.15.0
```

Every release on a timeline

4.x 

1. Not affected

4.0.0 – 4.1.0  
4 releases, latest

3.x 

1. Affected

3.0.1 – 3.14.1  
22 releases
2. Fixed

3.15.0 – 3.36.0  
30 releases

2.x 

1. Affected

2.0.0 – 2.48.0  
63 releases

1.x 

1. Affected

1.0.0 – 1.132.0  
139 releases

0.x 

1. Affected

0.0.1 – 0.17.0  
20 releases

278 stable releases of simple-git, oldest to newest, one row per major.

## What happens

The package simple-git before 3.15.0 is vulnerable to Remote Code Execution (RCE) when enabling the `ext` transport protocol, which makes it exploitable via `clone()` method. This vulnerability exists due to an incomplete fix of [CVE-2022-24066](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-2434306 "https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-2434306").

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: high
- **Integrity**: high
- **Availability**: high

CVSS:3.1/​AV:N/​AC:H/​PR:N/​UI:N/​S:U/​C:H/​I:H/​A:H

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-25912 "https://nvd.nist.gov/vuln/detail/CVE-2022-25912")  
nvd.nist.gov/vuln/detail/CVE-2022-25912
- [Fix commit](https://github.com/steveukx/git-js/commit/774648049eb3e628379e292ea172dccaba610504 "https://github.com/steveukx/git-js/commit/774648049eb3e628379e292ea172dccaba610504")  
7746480
- [Package](https://github.com/steveukx/git-js "https://github.com/steveukx/git-js")  
github.com/steveukx/git-js
- [Reference](https://github.com/steveukx/git-js/blob/main/docs/PLUGIN-UNSAFE-ACTIONS.md%23overriding-allowed-protocols "https://github.com/steveukx/git-js/blob/main/docs/PLUGIN-UNSAFE-ACTIONS.md%23overriding-allowed-protocols")  
github.com/steveukx/git-js/blob/main/docs/PLUGI…
- [Reference](https://github.com/steveukx/git-js/releases/tag/simple-git%403.15.0 "https://github.com/steveukx/git-js/releases/tag/simple-git%403.15.0")  
github.com/steveukx/git-js/releases/tag/simple-…
- [Reference](https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3153532 "https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3153532")  
security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3…
- [Reference](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-3112221 "https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-3112221")  
security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-3112221

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
