CVE-2022-25912: simple-git vulnerable to Remote Code Execution when enabling the ext transport protocol
8.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.97313%
CWE
Published
12/6/2022
Updated
8/17/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| simple-git | npm | < 3.15.0 | 3.15.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the clone() method's handling of configuration arguments that enable unsafe protocols like 'ext'. The commit diff shows changes to configuration argument handling, and the advisory explicitly mentions the clone() method as the exploitation vector. The CWE-78 (OS Command Injection) aligns with the RCE mechanism through git's ext protocol, which executes arbitrary commands. The patch introduced 'allowUnsafeProtocolOverride' to explicitly control protocol usage, confirming the vulnerable pattern was present in clone().