Advisory

GHSA-hf8c-xr89-vfm5

Also known as: CVE-2022-25766, SNYK-JS-UNGIT-2414099

Summary

Command Injection in ungit

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-03-22 00:00 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

ungit

npm · All systems

Affected

  • introduced 0, fixed 1.5.20 (semver)

Fixed versions

1.5.20

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences