Vulnerability in Traceroute Project
CVE-2018-21268
The traceroute (aka node-traceroute) package through 1.0.0 for Node.js allows remote command injection via the host parameter. This occurs because the Child.exec() method, which is considered to be not entirely safe, is used. In particular, an OS command can be placed after a newline character.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 10.0 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L.
EPSS exploit prediction
EPSS 0.043, 91.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- dannyEndorTest/node-vulnerable (last pushed 2026-05-21): Synthetic demo target for EXPOSURE — CVE-2018-21268 (traceroute) + CVE-2018-3757 (pdf-image)
References
- www.linkedin.com/posts/op-innovate_shell-command-injection-through-traceroute-a… (Third Party Advisory)
- www.op-c.net/2020/06/17/shell-command-injection-through-traceroute-npm-package/ (Exploit, Third Party Advisory)
- medium.com/@shay_62828/shell-command-injection-through-traceroute-npm-package-a…
- github.com/jaw187/node-traceroute/tags (Third Party Advisory)
- www.npmjs.com/package/traceroute (Product, Third Party Advisory)
- www.npmjs.com/advisories/1465 (Third Party Advisory)
- snyk.io/vuln/npm:traceroute:20160311 (Exploit, Third Party Advisory)
- github.com/jaw187/node-traceroute/commit/b99ee024a01a40d3d20a92ad3769cc78a3f638… (Patch, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.