CVE-2022-21122

published 3 Jun 2022 · updated 16 Sep 2024

Arbitrary Code Execution

9.0CriticalCVSS 9.0EPSS 3%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 3%. Fixed in 0.0.2.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<0.0.20.0.2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-21122 severity on Zeptric[![CVE-2022-21122](https://zeptric.io/badge/cve/CVE-2022-21122.svg)](https://zeptric.io/cve/CVE-2022-21122)