
Cloud Vulnerability DB
A community-led vulnerabilities database
A command injection vulnerability was discovered in the local-devices npm package affecting versions prior to 3.0.0. The vulnerability was identified and tracked as GHSA-w725-67p7-xv22, with a high severity rating. The issue was discovered in July 2019 and was published to the GitHub Advisory Database on September 3, 2020. The vulnerability affected the package's IP address validation functionality, potentially exposing systems to command injection attacks (GitHub Advisory).
The vulnerability stems from insufficient input validation on IP addresses in the package's 'find' API. The package directly concatenated user input into an exec call without proper validation, allowing attackers to inject arbitrary system commands. The issue was classified as CWE-77 (Command Injection) and received a high severity rating. The vulnerability could be demonstrated using inputs like '127.0.0.1 | mkdir attacker' which would execute unauthorized commands on the host system (GitHub PR).
The vulnerability could allow attackers to execute arbitrary commands on the host system where the local-devices package is implemented. This could potentially lead to system compromise, data breach, or unauthorized system modifications (GitHub Advisory).
The vulnerability was easily exploitable by passing maliciously crafted IP addresses to the find API function. An attacker could inject system commands by including shell command operators along with IP addresses, as demonstrated in the proof of concept: 'var userInput = '127.0.0.1 | mkdir attacker'; find(userInput);' (GitHub PR).
The vulnerability was patched in version 3.0.0 of the local-devices package. The fix implements proper IP address validation before executing commands. Users are strongly recommended to upgrade to version 3.0.0 or later. The patch validates IP addresses using both IPv4 and IPv6 format checks before proceeding with command execution (GitHub Commit).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."