{"id":"CVE-2022-21122","published":"2022-06-03T20:05:12Z","modified":"2024-09-16T19:56:29Z","title":"Arbitrary Code Execution","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02356,"percentile":0.84446,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-METACALC-2826197","tags":["x_refsource_MISC"]},{"url":"https://github.com/metarhia/metacalc/pull/16","tags":["x_refsource_MISC"]},{"url":"https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd","tags":["x_refsource_MISC"]}],"priority":{"score":23.2,"factors":[{"name":"EPSS percentile","points":16.89},{"name":"CVSS severity","points":6.3}]},"affectedVersions":[{"vendor":"n/a","product":"metacalc","versions":[">= unspecified, < 0.0.2"]}],"affected":[{"ecosystem":"npm","package":"metacalc","vulnerableRanges":["<0.0.2"],"patched":["0.0.2"],"from":["GHSA-5gc4-cx9x-9c43"],"provenance":"source"}],"summary":{"text":"The metacalc npm package, before version 0.0.2, has an arbitrary code execution flaw in how it exposes JavaScript's Math class to the v8 context, which lets user-land code reach the Function constructor. An attacker with network access and no privileges or user interaction can exploit this under high attack complexity, with the flaw scoped to change the security context of the component.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:38:34Z"},"euvd":{"id":"EUVD-2022-5939","exploited":false,"provenance":"source"}}