Skip to content

CVE-2022-21122 Arbitrary Code Execution

CriticalCVSS 9.8 EPSS 2.7%
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
metarhia metacalc < 0.0.2 0.0.2 Fixed
npm metacalc(npm) < 0.0.2 0.0.2 Fixed

Affected products

ProductAffected versionsFixed in
npm metacalc(npm) < 0.0.2 0.0.2
metarhia metacalc < 0.0.2 0.0.2

References