{"id":"CVE-2022-21122","state":"PUBLISHED","title":"Arbitrary Code Execution","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.","publishedAt":"2022-06-03T20:05:12.139Z","updatedAt":"2024-09-16T19:56:29.255Z","severity":{"score":9,"label":"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","source":"snyk"},"assigner":"snyk","products":["n/a metacalc"],"affected":[{"vendor":"n/a","product":"metacalc","versions":[{"version":"unspecified","status":"affected","lessThan":"0.0.2","versionType":"custom"}]}],"references":["https://snyk.io/vuln/SNYK-JS-METACALC-2826197","https://github.com/metarhia/metacalc/pull/16","https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd"],"weaknesses":[],"ingestedAt":"2026-10-29T19:49:35.025Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/21xxx/CVE-2022-21122.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-21122","state":"PUBLISHED","datePublished":"2022-06-03T20:05:12.139Z","dateUpdated":"2024-09-16T19:56:29.255Z","assignerShortName":"snyk","assignerOrgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateReserved":"2022-02-24T00:00:00.000Z"},"containers":{"cna":{"title":"Arbitrary Code Execution","descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"metacalc","versions":[{"version":"unspecified","status":"affected","lessThan":"0.0.2","versionType":"custom"}]}],"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"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","exploitCodeMaturity":"PROOF_OF_CONCEPT","integrityImpact":"HIGH","privilegesRequired":"NONE","remediationLevel":"NOT_DEFINED","reportConfidence":"NOT_DEFINED","scope":"CHANGED","temporalScore":8.5,"temporalSeverity":"HIGH","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P","version":"3.1"}}],"problemTypes":[{"descriptions":[{"description":"Arbitrary Code Execution","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"snyk","dateUpdated":"2022-06-03T20:05:12.000Z","orgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730"},"credits":[{"lang":"en","value":"Vladyslav Dukhin"}],"datePublic":"2022-06-03T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2022-06-03T20:00:06.343033Z","ID":"CVE-2022-21122","STATE":"PUBLIC","TITLE":"Arbitrary Code Execution"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"metacalc","version":{"version_data":[{"version_affected":"<","version_value":"0.0.2"}]}}]},"vendor_name":"n/a"}]}},"credit":[{"lang":"eng","value":"Vladyslav Dukhin"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Arbitrary Code Execution"}]}]},"references":{"reference_data":[{"name":"https://snyk.io/vuln/SNYK-JS-METACALC-2826197","refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JS-METACALC-2826197"},{"name":"https://github.com/metarhia/metacalc/pull/16","refsource":"MISC","url":"https://github.com/metarhia/metacalc/pull/16"},{"name":"https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd","refsource":"MISC","url":"https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://snyk.io/vuln/SNYK-JS-METACALC-2826197","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/metarhia/metacalc/pull/16","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T02:31:58.633Z"}}]}}}