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.
Remediation
References
https://snyk.io/vuln/SNYK-JS-RPI-548942
https://github.com/xseignard/rpi/blob/master/src/lib/gpio.js#L47
Related Vulnerabilities
CVE-2016-10539 Vulnerability in npm package negotiator
CVE-2018-19048 Vulnerability in maven package org.webjars.bower:simditor
CVE-2016-15011 Vulnerability in maven package be.e_contract.dssp:dssp-client
CVE-2021-43787 Vulnerability in npm package nodebb
CVE-2018-1000665 Vulnerability in maven package org.webjars:dojo