Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. traceroute
  4. ›
  5. CVE-2018-21268

CVE-2018-21268: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

May 24, 2022 (updated July 19, 2023)

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.

References

  • github.com/advisories/GHSA-8j9v-qhp4-wv55
  • github.com/jaw187/node-traceroute/commit/b99ee024a01a40d3d20a92ad3769cc78a3f6386f
  • github.com/jaw187/node-traceroute/tags
  • medium.com/@shay_62828/shell-command-injection-through-traceroute-npm-package-a4cf7b6553e3
  • nvd.nist.gov/vuln/detail/CVE-2018-21268
  • snyk.io/vuln/npm:traceroute:20160311
  • www.linkedin.com/posts/op-innovate_shell-command-injection-through-traceroute-activity-6678956453086191616-Rcpy
  • www.npmjs.com/advisories/1465
  • www.op-c.net/2020/06/17/shell-command-injection-through-traceroute-npm-package/

Code Behaviors & Features

Detect and mitigate CVE-2018-21268 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.0.0

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/traceroute/CVE-2018-21268.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:30 +0000.