GHSA-hf8c-xr89-vfm5

Suggest an improvement
Source
https://github.com/advisories/GHSA-hf8c-xr89-vfm5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-hf8c-xr89-vfm5/GHSA-hf8c-xr89-vfm5.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-hf8c-xr89-vfm5
Aliases
Published
2022-03-22T00:00:41Z
Modified
2026-07-08T06:49:57Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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.

Database specific
{
    "cwe_ids":  [
        "CWE-77"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2022-03-28T18:26:27Z",
    "nvd_published_at":  "2022-03-21T18:15:00Z",
    "severity":  "HIGH"
}
References

Affected packages

npm / ungit

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.5.20

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-hf8c-xr89-vfm5/GHSA-hf8c-xr89-vfm5.json"