Skip to main content
← All vulnerabilities
CVE-2022-25766GHSA-HF8C-XR89-VFM5SNYK-JS-UNGIT-2414099

Remote Code Execution (RCE)

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.5.20
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated
  3. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • n/a ungit

    fixed in 1.5.20

  • ungitnpm

    fixed in 1.5.20

References 3

snyk.io

GitHub · FredrikNoren/ungit