CVE-2018-13797
nodejs-macaddress: improper input validation leading to command injection
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Red Hat. Rated lower by Ubuntu (medium).
Description
The macaddress module before 0.2.9 for Node.js is prone to an arbitrary command injection flaw, due to allowing unsanitized input to an exec (rather than execFile) call.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | macaddress | 0.2.9 |
| debian 11 | node-macaddress | 0.2.9-1 |
| debian 12 | node-macaddress | 0.2.9-1 |
| debian 13 | node-macaddress | 0.2.9-1 |
| debian 14 | node-macaddress | 0.2.9-1 |
| echo | node-macaddress | 0.2.9-1 |
| ubuntu 18.04-ESM | node-macaddress | no fix listed |
References
- https://access.redhat.com/security/cve/CVE-2018-13797
- https://github.com/advisories/GHSA-pp57-mqmh-44h7
- https://github.com/scravy/node-macaddress
- https://github.com/scravy/node-macaddress/commit/358fd594adb196a86b94ac9c691f69fe5dad2332
- https://github.com/scravy/node-macaddress/pull/20
- https://github.com/scravy/node-macaddress/pull/20/
- https://github.com/scravy/node-macaddress/releases/tag/0.2.9
- https://hackerone.com/reports/319467