Vulnerability Details : CVE-2022-25766
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.
Vulnerability category: Execute code
Products affected by CVE-2022-25766
- cpe:2.3:a:ungit_project:ungit:*:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-25766
0.27%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 64 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-25766
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.5
|
MEDIUM | AV:N/AC:L/Au:S/C:P/I:P/A:P |
8.0
|
6.4
|
NIST | |
8.8
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
2.8
|
5.9
|
NIST | |
8.8
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
2.8
|
5.9
|
Snyk |
CWE ids for CVE-2022-25766
-
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.Assigned by: nvd@nist.gov (Primary)
References for CVE-2022-25766
-
https://github.com/FredrikNoren/ungit/pull/1510
Fix potential remote code exec by jung-kim · Pull Request #1510 · FredrikNoren/ungit · GitHubExploit;Patch;Third Party Advisory
-
https://snyk.io/vuln/SNYK-JS-UNGIT-2414099
Remote Code Execution (RCE) in ungit | CVE-2022-25766 | SnykRelease Notes;Third Party Advisory
-
https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520
Page not found · GitHub · GitHubBroken Link;Release Notes;Third Party Advisory
Jump to