# GHSA-rjvj-673q-4hfw: Command Injection in traceroute

- Severity: Critical (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-04T17:54:31.000Z
- Modified: 2021-10-04T20:53:02.000Z
- Weaknesses: CWE-77

## Description

All versions of `traceroute` are vulnerable to Command Injection. The package fails to sanitize input and passes it directly to an `exec` call, which may allow attackers to execute arbitrary code in the system. The `trace` function is vulnerable and can be abused if the `host` value is controlled by an attacker.


## Recommendation

No fix is currently available. Consider using an alternative package until a fix is made available.

(As written by GitHub Advisory Database.)

## Affected

- traceroute (npm): from 0.0.0

## References

- <https://github.com/jaw187/node-traceroute> (package)
- <https://snyk.io/vuln/npm:traceroute:20160311> (web)
- <https://www.npmjs.com/advisories/1465> (web)

## Sources

- GitHub Advisory Database: [GHSA-rjvj-673q-4hfw](https://github.com/advisories/GHSA-rjvj-673q-4hfw), CC-BY-4.0, modified 2021-10-04

---

Page: https://cve.day/GHSA-rjvj-673q-4hfw · Whole record: https://cve.day/GHSA-rjvj-673q-4hfw.json · Rebuilt by cve.day 2026-11-25T22:56:46.485Z
