Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. vm2
  4. ›
  5. CVE-2022-25893

CVE-2022-25893: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

December 21, 2022 (updated January 3, 2023)

The package vm2 before 3.9.10 is 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.

References

  • github.com/advisories/GHSA-4w2j-2rg4-5mjw
  • github.com/patriksimek/vm2/issues/444
  • github.com/patriksimek/vm2/pull/445
  • github.com/patriksimek/vm2/pull/445/commits/3a9876482be487b78a90ac459675da7f83f46d69
  • nvd.nist.gov/vuln/detail/CVE-2022-25893
  • security.snyk.io/vuln/SNYK-JS-VM2-2990237

Code Behaviors & Features

Detect and mitigate CVE-2022-25893 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.9.10

Fixed versions

  • 3.9.10

Solution

Upgrade to version 3.9.10 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Source file

npm/vm2/CVE-2022-25893.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:23 +0000.