Vulnerability · Published Mar 21, 2022 · Assigned by snyk

CVE-2022-25766Remote Code Execution (RCE)

High 8.8

In plain English

A high-severity security flaw in ungit. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 34.5% (higher than 98% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)34.5%top 1.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
npmungit1.5.20GHSA-hf8c-xr89-vfm5

Affected products (as reported)

VendorProductVersions
n/a ungit unspecified – before 1.5.20

References