OSV 1.4.0 · github-reviewed · 修改于 2020-09-01 02:59
发布时间
2020-09-05 01:27
GitHub 审查时间
2020-09-01 02:59
NVD 发布时间
—
源文件
advisories/github-reviewed/2020/09/GHSA-97mg-3cr6-3x4c/GHSA-97mg-3cr6-3x4c.json
Versions of mongodb-query-parser prior to 2.0.0 are vulnerable to Remote Code Execution. The package fails to sanitize queries, allowing attackers to execute arbitrary code in the system. Parsing the following payload executes touch test-file:
'(function () { return (clearImmediate.constructor("return process;")()).mainModule.require("child_process").execSync("touch test-file").toString()})()'
Upgrade to version 2.0.0 or later.