CVEvulnerability
CVE-2022-21122
9.8 CRITICAL
Official page ↗
- Status
- Modified
- Published
- 2022-06-08
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 9.0 CRITICAL — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- CVSS 3.1 ([email protected])
- 9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 2.0 ([email protected])
- 7.5 HIGH — AV:N/AC:L/Au:N/C:P/I:P/A:P
- Weaknesses
- CWE-94
Description
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.
Affected configurations
• metarhia metacalc (< 0.0.2)
Related
Weakness · CWE (1)
- CWE-94 Improper Control of Generation of Code weakness
References
- https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd Patch, Third Party Advisory
- https://github.com/metarhia/metacalc/pull/16 Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-METACALC-2826197 Exploit, Third Party Advisory
- https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd Patch, Third Party Advisory
- https://github.com/metarhia/metacalc/pull/16 Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-METACALC-2826197 Exploit, Third Party Advisory