← Vulnerability feed

Vulnerability record · CVE-2022-25766 · published 21 March 2022

CVE-2022-25766: Ungit project ungit argument injection vulnerability

UUngit Project · Ungit

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.

8.8 CVSS 3.1 High EPSS 34% · top 1.6% CWE-88 · Argument injection
8.8CVSS 3.1 base score, v2 6.5
34%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
6References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520 Broken LinkRelease NotesThird Party Advisory
https://github.com/FredrikNoren/ungit/pull/1510 ExploitPatchThird Party Advisory
https://snyk.io/vuln/SNYK-JS-UNGIT-2414099 Release NotesThird Party Advisory
https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520 Broken LinkRelease NotesThird Party Advisory
https://github.com/FredrikNoren/ungit/pull/1510 ExploitPatchThird Party Advisory
https://snyk.io/vuln/SNYK-JS-UNGIT-2414099 Release NotesThird Party Advisory

Track CVE-2022-25766 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

Source: NIST National Vulnerability Database (record CVE-2022-25766), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.