CVE-2022-21122

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-21122
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21122.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-21122
Aliases
Related
  • SNYK-JS-METACALC-2826197
Published
2022-06-08T09:15:08Z
Modified
2025-01-15T02:14:14.877546Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/metarhia/metacalc

Affected ranges

Type
GIT
Repo
https://github.com/metarhia/metacalc
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed

Affected versions

v0.*

v0.0.1