CVE-2022-25893 json
Arbitrary Code Execution
published 2022-12-21 3 y ago modified 2026-06-17 4 mo ago also GHSA-4w2j-2rg4-5mjw , EUVD-2022-7507
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 75%
- public exploits
- 0
- none known
Summary
The package vm2 before 3.9.10 are vulnerable to Arbitrary Code Execution due to the usage of prototype lookup for the WeakMap.prototype.set method. Exploiting this vulnerability leads to access to a host object and a sandbox compromise.
Patch / fix
- npm vm2 3.9.10
- n/a vm2 3.9.10
- github.com/patriksimek/vm2#445 commit
- github.com/patriksimek/vm2#445 pull request
- security.snyk.io/vuln/SNYK-JS-VM2-2990237 advisory
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
1.54% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- security.snyk.io https://security.snyk.io/vuln/SNYK-JS-VM2-2990237 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/patriksimek/vm2/issues/444 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | vm2 | <3.9.10 |
3.9.10 |
Affected products
- n/a vm2
Classification
References
-
github.com
/patriksimek/vm2/pull/445/commits/3a9876482be487b78a90ac459675da7f83f46d69
web, patch, third-party-advisory
-
github.com
/patriksimek/vm2/pull/445
web, patch, third-party-advisory
-
security.snyk.io
/vuln/SNYK-JS-VM2-2990237
web, exploit, patch, third-party-advisory
-
github.com
/patriksimek/vm2/issues/444
web, exploit, issue-tracking, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-25893
advisory
-
github.com
/patriksimek/vm2
package
Sources
- CVE List CVE-2022-25893
- GitHub Advisory GHSA-4w2j-2rg4-5mjw
- NVD CVE-2022-25893
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.