---
title: "GHSA-9w5j-4mwv-2wj8: Remote code execution in simple-git"
description: "Critical severity. Remote code execution in simple-git. Affects simple-git; fixed in 3.16.0."
url: https://inlinr.com/advisories/GHSA-9w5j-4mwv-2wj8
lang: en
---

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

Critical Vulnerability GHSA-9w5j-4mwv-2wj8 CVE-2022-25860 Published 26 Jan 2023

# Remote code execution in simple-git

Your version 

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

- 3.x 3.0.1 – 3.15.1 Fixed in 3.16.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.16.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.15.1  
24 releases
2. Fixed

3.16.0 – 3.36.0  
28 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

Versions of the package simple-git before 3.16.0 are vulnerable to Remote Code Execution (RCE) via the clone(), pull(), push() and listRemote() methods, due to improper input sanitization. This vulnerability exists due to an incomplete fix of CVE-2022-25912.

## 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:L/​PR:N/​UI:N/​S:U/​C:H/​I:H/​A:H

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-25860 "https://nvd.nist.gov/vuln/detail/CVE-2022-25860")  
nvd.nist.gov/vuln/detail/CVE-2022-25860
- [Pull request](https://github.com/steveukx/git-js/pull/881/commits/95459310e5b8f96e20bb77ef1a6559036b779e13 "https://github.com/steveukx/git-js/pull/881/commits/95459310e5b8f96e20bb77ef1a6559036b779e13")  
#881
- [Fix commit](https://github.com/steveukx/git-js/commit/ec97a39ab60b89e870c5170121cd9c1603cc1951 "https://github.com/steveukx/git-js/commit/ec97a39ab60b89e870c5170121cd9c1603cc1951")  
ec97a39
- [Reference](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-3177391 "https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-3177391")  
security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-3177391

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.
