Vulnerability Details : CVE-2022-21122
The package metacalc before 0.0.2 are vulnerable to Arbitrary Code Execution when it exposes JavaScript's Math class to the v8 context. As the Math class is exposed to user-land, it can be used to get access to JavaScript's Function constructor.
Products affected by CVE-2022-21122
- cpe:2.3:a:metarhia:metacalc:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-21122
1.03%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 84 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-21122
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 | |
9.0
|
CRITICAL | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
2.2
|
6.0
|
Snyk |
CWE ids for CVE-2022-21122
-
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.Assigned by: nvd@nist.gov (Primary)
References for CVE-2022-21122
-
https://snyk.io/vuln/SNYK-JS-METACALC-2826197
Arbitrary Code Execution in metacalc | CVE-2022-21122 | SnykExploit;Third Party Advisory
-
https://github.com/metarhia/metacalc/pull/16
Prevent arbitrary js code execution by tshemsedinov · Pull Request #16 · metarhia/metacalc · GitHubPatch;Third Party Advisory
-
https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd
Prevent arbitrary js code execution · metarhia/metacalc@625c23d · GitHubPatch;Third Party Advisory
Jump to