# GHSA-w725-67p7-xv22: Command Injection in local-devices

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-03T17:05:04.000Z
- Modified: 2021-09-28T17:35:44.000Z
- Weaknesses: CWE-77

## Description

Versions of `local-devices` prior to 3.0.0 are vulnerable to Command 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.


## Recommendation

Upgrade to version 3.0.0 or later.

(As written by GitHub Advisory Database.)

## Affected

- local-devices (npm): before 3.0.0

## References

- <https://github.com/DylanPiercey/local-devices/pull/16> (web)
- <https://github.com/DylanPiercey/local-devices/commit/57b9a933c9d23d34bd5a055536db824de66db553> (web)
- <https://github.com/DylanPiercey/local-devices> (package)
- <https://www.npmjs.com/advisories/1020> (web)

## Sources

- GitHub Advisory Database: [GHSA-w725-67p7-xv22](https://github.com/advisories/GHSA-w725-67p7-xv22), CC-BY-4.0, modified 2021-09-28

---

Page: https://cve.day/GHSA-w725-67p7-xv22 · Whole record: https://cve.day/GHSA-w725-67p7-xv22.json · Rebuilt by cve.day 2026-11-25T22:56:46.789Z
