Critical
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-21268
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:29 UTC · Revision 1
Source evidence
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.
osv:CVE-2018-21268
Complete source record
{
"id": "9b8ba453aeb101740ce7237f852c5088d2d23eb5091a7507029a62de5d77fff7",
"url": "https://osv.dev/vulnerability/CVE-2018-21268",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-21268",
"summary": "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.",
"evidence": "osv:CVE-2018-21268",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2018-21268",
"aliases": [
"CVE-2018-21268",
"GHSA-8j9v-qhp4-wv55"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/jaw187/node-traceroute",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "654f1002809a46c301c7da5ac4c344879b4cb9a5"
},
{
"fixed": "b99ee024a01a40d3d20a92ad3769cc78a3f6386f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:traceroute_project:traceroute:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.0.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "b99ee024a01a40d3d20a92ad3769cc78a3f6386f"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-21268.json"
}
}
],
"modified": "2026-10-20T10:50:25.979235647Z",
"provider": "osv",
"references": [
"https://medium.com/%40shay_62828/shell-command-injection-through-traceroute-npm-package-a4cf7b6553e3",
"https://github.com/jaw187/node-traceroute/tags",
"https://www.linkedin.com/posts/op-innovate_shell-command-injection-through-traceroute-activity-6678956453086191616-Rcpy",
"https://www.npmjs.com/advisories/1465",
"https://www.npmjs.com/package/traceroute",
"https://github.com/jaw187/node-traceroute/commit/b99ee024a01a40d3d20a92ad3769cc78a3f6386f",
"https://snyk.io/vuln/npm:traceroute:20160311",
"https://www.op-c.net/2020/06/17/shell-command-injection-through-traceroute-npm-package/"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2018-21268",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 381702,
"published_at": "2020-06-25T17:15:11.567+00:00"
}