CVE-2018-21268 Node-Traceroute RCE Vulnerability

Critical 10.0 Published Updated

Remote attackers can execute arbitrary OS commands via the host parameter in the node-traceroute library due to unsafe use of Child.exec().

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2018-21268?

CVE-2018-21268 is a critical command injection vulnerability in n/a, published on 25 Jun 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-74

Which versions are affected by CVE-2018-21268?

2 open source packages ship an affected version, including traceroute. It affects 1 product.

PackageAffectedFixed in
traceroute npmAll versions to 1.0.0None
traceroute npmAll versions to 1.0.0None

Products include Traceroute Project Traceroute.

How do I fix CVE-2018-21268?

No fix has been published for CVE-2018-21268 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2018-21268 being exploited?

There is no known exploitation of CVE-2018-21268 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-8j9v-qhp4-wv55.

Is CVE-2018-21268 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free