Vulnerability Details : CVE-2022-24433
The package simple-git before 3.3.0 are vulnerable to Command Injection via argument injection. When calling the .fetch(remote, branch, handlerFn) function, both the remote and branch parameters are passed to the git fetch subcommand. By injecting some git options it was possible to get arbitrary command execution.
Products affected by CVE-2022-24433
- cpe:2.3:a:simple-git_project:simple-git:*:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-24433
0.67%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 80 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-24433
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | AV:N/AC:L/Au:N/C:P/I:P/A:P |
10.0
|
6.4
|
NIST | |
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST | |
8.1
|
HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
2.2
|
5.9
|
Snyk |
CWE ids for CVE-2022-24433
-
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-24433
-
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2421245
Command Injection in org.webjars.npm:simple-git | CVE-2022-24433 | SnykPatch;Third Party Advisory
-
https://github.com/steveukx/git-js/pull/767
Prevent use of `--upload-pack` as a command in `git.fetch` to avoid p… by steveukx · Pull Request #767 · steveukx/git-js · GitHubPatch;Third Party Advisory
-
https://snyk.io/vuln/SNYK-JS-SIMPLEGIT-2421199
Command Injection in simple-git | CVE-2022-24433 | SnykPatch;Third Party Advisory
-
https://github.com/steveukx/git-js/releases/tag/simple-git%403.3.0
Release simple-git@3.3.0 · steveukx/git-js · GitHubPatch;Third Party Advisory
Jump to