CVE-2019-10796 OS Command Injection in rpi
The rpi library allows arbitrary command execution via unsanitized input in the GPIO function, requiring an upgrade to secure Node.js applications.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2019-10796?
CVE-2019-10796 is a critical command injection vulnerability in rpi, published on 24 Feb 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
rpi through 0.0.3 allows execution of arbritary commands. The variable pinNumbver in function GPIO within src/lib/gpio.js is used as part of the arguement of exec function without any sanitization.
Weakness: CWE-78
Which versions are affected by CVE-2019-10796?
2 open source packages ship an affected version, including rpi. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
rpi npm | All versions to 0.0.3 | None |
rpi npm | All versions to 0.0.3 | None |
Products include Rpi Project Rpi.
How do I fix CVE-2019-10796?
No fix has been published for CVE-2019-10796 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2019-10796 being exploited?
There is no known exploitation of CVE-2019-10796 in the wild and no public exploit code.
Sources
Also known as GHSA-vf26-7gjf-f92r.