Packages / simple-git / Security
simple-git is vulnerable to Remote Code Execution
Affected releases · simple-git
- 3.x3.0.1 – 3.35.2Fixed in 3.36.0
- 2.x and older0.0.1 – 2.48.0No fix, no longer updated
On 3.x, the newest line:
npm install simple-git@3.36.0Every release on a timeline
Not affected
4.0.0 – 4.1.0
4 releases, latest
Affected
3.0.1 – 3.35.2
51 releases
Fixed
3.36.0
1 release
Affected
2.0.0 – 2.48.0
63 releases
Affected
1.0.0 – 1.132.0
139 releases
Affected
0.0.1 – 0.17.0
20 releases
What happens
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 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.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.