{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "1.0.0"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "654f1002809a46c301c7da5ac4c344879b4cb9a5"
            },
            {
              "fixed": "b99ee024a01a40d3d20a92ad3769cc78a3f6386f"
            }
          ],
          "repo": "https://github.com/jaw187/node-traceroute",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2018-21268",
  "modified": "2026-04-01T23:09:14.808216380Z",
  "published": "2020-06-25T17:15:11.567Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://medium.com/%40shay_62828/shell-command-injection-through-traceroute-npm-package-a4cf7b6553e3"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.linkedin.com/posts/op-innovate_shell-command-injection-through-traceroute-activity-6678956453086191616-Rcpy"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.npmjs.com/advisories/1465"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.npmjs.com/package/traceroute"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/jaw187/node-traceroute/tags"
    },
    {
      "type": "FIX",
      "url": "https://github.com/jaw187/node-traceroute/commit/b99ee024a01a40d3d20a92ad3769cc78a3f6386f"
    },
    {
      "type": "EVIDENCE",
      "url": "https://snyk.io/vuln/npm:traceroute:20160311"
    },
    {
      "type": "EVIDENCE",
      "url": "https://www.op-c.net/2020/06/17/shell-command-injection-through-traceroute-npm-package/"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}