CVE-2018-21268

CRITICAL

traceroute < 1.0.0 - Remote Command Injection via Host Parameter

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2018-21268. PoCs published by dannyEndorTest.

AI-analyzed exploit summary This repository contains a functional exploit PoC for CVE-2018-21268, demonstrating command injection via the `traceroute` package's `host` argument. The `/traceroute` endpoint passes user input directly to `traceroute.trace()` without validation, making it exploitable.

Description

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.

Exploits (1)

nomisec WORKING POC
by dannyEndorTest · poc
https://github.com/dannyEndorTest/node-vulnerable

This repository contains a functional exploit PoC for CVE-2018-21268, demonstrating command injection via the `traceroute` package's `host` argument. The `/traceroute` endpoint passes user input directly to `traceroute.trace()` without validation, making it exploitable.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: traceroute (npm package) version 1.0.0
No auth needed
Prerequisites: Network access to the vulnerable endpoint · Ability to send HTTP requests to `/traceroute`
devstral-2 · analyzed May 21, 2026 Full analysis →

Scores

CVSS v3 10.0
EPSS 0.0652
EPSS Percentile 91.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L

Details

CWE
CWE-74
Status published
Products (2)
npm/traceroute 0npm
traceroute_project/traceroute < 1.0.0
Published Jun 25, 2020
Tracked Since Feb 18, 2026