Privilege Escalation

Affecting isolated-vm package, versions <4.0.0

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

Overview

isolated-vm is an Access to multiple isolates

Affected versions of this package are vulnerable to Privilege Escalation. Misuse of Reference and other transferable APIs may lead to access to nodejs isolate. Affected versions have API pitfalls which make it possible for implementers to expose supposed secure isolates to the permissions of the main nodejs isolate.

Reference objects allow access to the underlying reference's full prototype chain. In an environment where the implementer has exposed a Reference instance to an attacker, they would be able to use it to acquire a Reference to the nodejs context's Function object.

Similar application-specific attacks could be possible by modifying the local prototype of other API objects.

Access to NativeModule objects could allow an attacker to load and run native code from anywhere on the filesystem. If combined with, for example, a file upload API, this would allow for arbitrary code execution.

Remediation

Upgrade isolated-vm to version 4.0.0 or higher.

References

CVSS Score

8.0
high severity
  • Attack Vector
    Adjacent
  • Attack Complexity
    High
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Changed
  • Confidentiality
    High
  • Integrity
    High
  • Availability
    None
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
Credit
Abdullah Hamdan, Cristian-Alexandru STAICU
CVE
CVE-2021-21413
CWE
CWE-264
Snyk ID
SNYK-JS-ISOLATEDVM-1243750
Disclosed
06 Apr, 2021
Published
07 Apr, 2021