CVE-2020-7609 Code Injection in node-rules
Attackers can execute arbitrary code by injecting malicious commands into the rules argument of the fromJSON function in node-rules.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-7609?
CVE-2020-7609 is a critical code injection vulnerability in node-rules, published on 27 Apr 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
node-rules including 3.0.0 and prior to 5.0.0 allows injection of arbitrary commands. The argument rules of function "fromJSON()" can be controlled by users without any sanitization.
Weakness: CWE-94
Which versions are affected by CVE-2020-7609?
2 open source packages ship an affected version, including node-rules. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
node-rules npm | From 3.0.0 | 5.0.0 |
node-rules npm | From 3.0.0 | 5.0.0 |
Products include Node-Rules Project Node-Rules.
How do I fix CVE-2020-7609?
Upgrade node-rules to 5.0.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2020-7609 being exploited?
There is no known exploitation of CVE-2020-7609 in the wild and no public exploit code.
Sources
Also known as GHSA-f78f-353m-cf4j, SNYK-JS-NODERULES-560426.