9.0critical
Arbitrary Code Execution
- Severity
- 9.0critical CVSS:3.1 by snyk
- Exploit likelihood
- 2.68% (higher than 86% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-5gc4-cx9x-9c43SNYK-JS-METACALC-2826197
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
| Product or package | Versions | Reported by |
|---|---|---|
| metacalc | from unspecified before 0.0.2 | CVE List |
| metacalc (npm) | before 0.0.2 | GitHub Advisory Database |
| metarhia metacalc | before 0.0.2 | NVD |
All scores
| snyk | 9.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P |
| GitHub | 9.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
The package metacalc before 0.0.2 is 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.
NVD (es)
El paquete metacalc versiones anteriores a 0.0.2, es vulnerable a una ejecución arbitraria de código cuando expone la clase Math de JavaScript al contexto v8. Como la clase Math está expuesta al contexto del usuario, puede ser usada para conseguir acceso al constructor de funciones de JavaScript
References
| https://snyk.io/vuln/SNYK-JS-METACALC-2826197 | exploit, third-party-advisory, web | |
| https://github.com/metarhia/metacalc/pull/16 | patch, third-party-advisory, web | |
| https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-21122 | advisory | |
| https://github.com/metarhia/metacalc | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-21122 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5gc4-cx9x-9c43 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2022-21122 changed 2026-06-17 | Public domain |