CVE-2022-25766

Remote Code Execution (RCE)

HIGH
8.8
CVSS Score
Published: March 21, 2022 at 05:15 PM UTC
Updated: June 17, 2026 at 04:34 AM UTC
1 product affected across 1 vendorUngit

Using ungit by N/A?

Get instant alerts when new vulnerabilities affect ungit - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 35%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.5.20
Affected range stops below 1.5.20, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (3)

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

CVSS

8.8HIGHsnyk
Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-88

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card