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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| metarhia metacalc | < 0.0.2 | 0.0.2 | Fixed |
| npm metacalc(npm) | < 0.0.2 | 0.0.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm metacalc(npm) | < 0.0.2 | 0.0.2 |
| metarhia metacalc | < 0.0.2 | 0.0.2 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- github.com patch third-party-advisory
- snyk.io exploit third-party-advisory
- github.com
- github.com product