---
cve: "CVE-2022-21122"
severity: "CRITICAL"
cvss: 9.0
epss: "2.5%"
vendor: "n/a"
kev: false
exploited: false
published: "2022-06-08 09:15:08"
tags: [cve, security, critical]
source: tsecurity.de CVE-Dossier
exported: "2026-10-28T09:15:11+01:00"
---

# CVE-2022-21122

> 9.0 CRITICAL · 🧪 PoC

## Beschreibung

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.

## CNA-Record (Kanon, cvelistV5)

- CNA: **snyk**
- State: PUBLISHED
- Stand: 2024-09-16 19:56:29
- CNA-CVSS: **9.0** (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P`)

## CVSS-Vektor

```
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Hoch | good |
| PR Privilegien | Keine | bad |
| UI Interaktion | Keine | bad |
| S Scope | Verändert | bad |
| C Vertraulichkeit | Hoch | bad |
| I Integrität | Hoch | bad |
| A Verfügbarkeit | Hoch | bad |

## Patch verfügbar (OSV)

- 940be866d58a908507aa61611ba158752175d425 (Commit)
- 625c23d63eabfa16fc815f5832b147b08d2144bd (Commit)

## Referenzen

- <https://snyk.io/vuln/SNYK-JS-METACALC-2826197>
- <https://github.com/metarhia/metacalc/pull/16>
- <https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/sicherheitsluecken/cve-2022-21122/) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI WID (CSAF)_
