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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:metarhia:metacalc:*:*:*:*:*:*:*:*

History

17 Jun 2022, 00:59

Type Values Removed Values Added
References (MISC) https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd - (MISC) https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd - Patch, Third Party Advisory
References (MISC) https://github.com/metarhia/metacalc/pull/16 - (MISC) https://github.com/metarhia/metacalc/pull/16 - Patch, Third Party Advisory
References (MISC) https://snyk.io/vuln/SNYK-JS-METACALC-2826197 - (MISC) https://snyk.io/vuln/SNYK-JS-METACALC-2826197 - Exploit, Third Party Advisory
CVSS v2 : unknown
v3 : unknown
v2 : 7.5
v3 : 9.8
CPE cpe:2.3:a:metarhia:metacalc:*:*:*:*:*:*:*:*
CWE CWE-94

08 Jun 2022, 09:15

Type Values Removed Values Added
New CVE

Information

Published : 2022-06-08 09:15

Updated : 2024-02-04 22:29


NVD link : CVE-2022-21122

Mitre link : CVE-2022-21122

CVE.ORG link : CVE-2022-21122


JSON object : View

Products Affected

metarhia

  • metacalc
CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')