GitHub Advisoryadvisory · npm

GHSA-r3x4-wr4h-pw33 Sandbox Breakout / Arbitrary Code Execution in safer-eval

CRITICAL Published 2019-10-21 Modified 2021-07-27 Official page ↗
Aliases
CVE-2019-10759
Ecosystem
npm
Packages
safer-eval
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Weaknesses
CWE-94
Reviewed
2019-10-17

Affected packages

• npm safer-eval: < 1.3.4 → fixed in 1.3.4

Description

Versions of `safer-eval` prior to 1.3.4 are vulnerable to Sandbox Escape leading to Remote Code Execution. A payload using constructor properties can escape the sandbox and execute arbitrary code. For example, evaluating he string `console.constructor.constructor('return process')().env` prints `process.env` to the console. Recommendation Upgrade to version 1.3.4 or later.

Related

Alias · CVE (1)

  • CVE-2019-10759 safer-eval before 1.3.4 are vulnerable to Arbitrary Code Execution. vulnerability

Weakness · CWE (1)

  • CWE-94 Improper Control of Generation of Code weakness

References