Advisory Published
Updated

CVE-2022-25893: Arbitrary Code Execution

First published: Wed Dec 21 2022(Updated: )

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.

Credit: report@snyk.io

Affected SoftwareAffected VersionHow to fix
Vm2 Project<3.9.10

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2022-25893?

    CVE-2022-25893 has a severity rating of high due to its potential for arbitrary code execution.

  • How do I fix CVE-2022-25893?

    To mitigate CVE-2022-25893, upgrade the vm2 package to version 3.9.10 or later.

  • What causes the vulnerability described in CVE-2022-25893?

    CVE-2022-25893 is caused by the use of prototype lookup for the WeakMap.prototype.set method.

  • What could an attacker achieve by exploiting CVE-2022-25893?

    An attacker could achieve arbitrary code execution, leading to access to host objects and sandbox compromise.

  • Which versions of the vm2 package are affected by CVE-2022-25893?

    All versions of the vm2 package prior to 3.9.10 are affected by CVE-2022-25893.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203