CVE-2022-25766
JSON

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 packageVersionsReported by
ungitfrom unspecified before 1.5.20CVE List
ungit (npm)before 1.5.20GitHub Advisory Database
ungit_project ungitbefore 1.5.20NVD

All scores

snyk8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD6.5medium CVSS:2.0AV: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

Sources

SourceRecordLicence
CVE ListCVE-2022-25766 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-hf8c-xr89-vfm5 changed 2026-07-08CC-BY-4.0
NVDCVE-2022-25766 changed 2026-06-17Public domain