CVE-2022-25766
Ungit Project Ungit vulnerability
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 products
Ungit. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ungit Project Ungit runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/FredrikNoren/ungit/pull/1510 · Exploit
- github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520 · Third Party Advisory
- snyk.io/vuln/SNYK-JS-UNGIT-2414099 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-25766
- cve.org/CVERecord?id=CVE-2022-25766
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.