8.8high
Remote Code Execution (RCE)
- Severity
- 8.8high CVSS:3.1 by snyk
- Exploit likelihood
- 34.5% (higher than 98% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-hf8c-xr89-vfm5SNYK-JS-UNGIT-2414099
Description
The package ungit before 1.5.20 are vulnerable to Remote Code Execution (RCE) via argument injection. The issue occurs when calling the /api/fetch endpoint. User controlled values (remote and ref) are passed to the git fetch command. By injecting some git options it was possible to get arbitrary command execution.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ungit | from unspecified before 1.5.20 | CVE List |
| ungit (npm) | before 1.5.20 | GitHub Advisory Database |
| ungit_project ungit | before 1.5.20 | NVD |
All scores
| snyk | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.5medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Classification
What each source says
CVE List
The package ungit before 1.5.20 are vulnerable to Remote Code Execution (RCE) via argument injection. The issue occurs when calling the /api/fetch endpoint. User controlled values (remote and ref) are passed to the git fetch command. By injecting some git options it was possible to get arbitrary command execution.
NVD (es)
El paquete ungit versiones anteriores a 1.5.20, es vulnerable a una Ejecución de Código Remota (RCE) por medio de la inyección de argumentos. El problema ocurre cuando es llamado al endpoint /api/fetch. Los valores controlados por el usuario (remote y ref) son pasados al comando git fetch. Inyectando algunas opciones de git era posible conseguir una ejecución arbitraria del comando
References
| https://snyk.io/vuln/SNYK-JS-UNGIT-2414099 | release-notes, third-party-advisory, web | |
| https://github.com/FredrikNoren/ungit/pull/1510 | exploit, patch, third-party-advisory, web | |
| https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520 | broken-link, release-notes, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-25766 | advisory | |
| https://github.com/FredrikNoren/ungit/pull/1511 | web | |
| https://github.com/FredrikNoren/ungit | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-25766 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hf8c-xr89-vfm5 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2022-25766 changed 2026-06-17 | Public domain |