Arbitrary Code Injection Affecting local-devices package, versions <3.0.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-LOCALDEVICES-459898
  • published20 Aug 2019
  • disclosed25 Jun 2019
  • creditvladi sandler

Introduced: 25 Jun 2019

CVE NOT AVAILABLE CWE-94  (opens in a new tab)

How to fix?

Upgrade local-devices to version 3.0.0 or higher.

Overview

local-devices is a for finding all devices connected to the local network.

Affected versions of this package are vulnerable to Arbitrary Code Injection. The package does not validate input on ip addresses and concatenates it to an exec call, allowing attackers to run arbitrary commands in the system.

CVSS Scores

version 3.1