CVE-2022-21122
Dashboard / Vulnerabilities / CVE-2022-21122
CVE-2022-21122
Published: 3 Jun 2022Last Modified: 21 Oct 2026
Summary: Arbitrary Code Execution
Details: 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.
References: https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21122.json, https://nvd.nist.gov/vuln/detail/CVE-2022-21122, https://snyk.io/vuln/SNYK-JS-METACALC-2826197, https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd, https://github.com/metarhia/metacalc/pull/16
Affected packages
Package
Name:
Purl:
Affected ranges
Affected versions
v0.0.1
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
