CVE-2018-21268
Traceroute Project Traceroute vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Traceroute. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Traceroute Project Traceroute runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/jaw187/node-traceroute/commit/b99ee024a01a40d3d20a92ad3769cc78a3f6386f · Patch
- github.com/jaw187/node-traceroute/tags · Third Party Advisory
- snyk.io/vuln/npm:traceroute:20160311 · Exploit
- www.linkedin.com/posts/op-innovate_shell-command-injection-through-traceroute-activity-667 · Third Party Advisory
- www.npmjs.com/advisories/1465 · Third Party Advisory
- www.npmjs.com/package/traceroute · Third Party Advisory
- www.op-c.net/2020/06/17/shell-command-injection-through-traceroute-npm-package/ · Exploit
- medium.com/%40shay_62828/shell-command-injection-through-traceroute-npm-package-a4cf7b6553
- nvd.nist.gov/vuln/detail/CVE-2018-21268
- cve.org/CVERecord?id=CVE-2018-21268
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.