RCE in Metarhia Metacalc
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.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.0 (Critical). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.025 (84.3th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 84th percentile — 84.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.025 · newest: 0.025 · change: 0.000
Affected products
- Metarhia Metacalc
- Metacalc — versions unspecified
Weakness classification (CWE)
References
- snyk.io/vuln/SNYK-JS-METACALC-2826197 (Exploit, Third Party Advisory)
- github.com/metarhia/metacalc/pull/16 (Patch, Third Party Advisory)
- github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd (Patch, Third Party Advisory)
Frequently asked questions
- What is CVE-2022-21122?
- CVE-2022-21122 is a critical-severity vulnerability in Metarhia Metacalc, classified under Code Injection. CVSS score: 9.0/10. Published 2022-06-08.
- How severe is CVE-2022-21122?
- Critical severity. CVSS v3 base score is 9.0 out of 10.