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-2020-26237 Vulnerability in maven package org.webjars.bowergithub.highlightjs:highlight.js
CVE-2020-8214 Vulnerability in npm package servey
CVE-2015-0279 Vulnerability in maven package org.richfaces:richfaces-a4j
CVE-2023-31579 Vulnerability in maven package top.tangyh.basic:lamp-core
CVE-2022-39386 Vulnerability in npm package @fastify/websocket