GitHub Advisoryadvisory · npm
GHSA-rjvj-673q-4hfw Command Injection in traceroute
CRITICAL
Official page ↗
- Ecosystem
- npm
- Packages
- traceroute
- Severity
- Critical
- Weaknesses
- CWE-77
- Reviewed
- 2020-08-31
Affected packages
• npm traceroute: >= 0.0.0 (no fix yet)
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.
Related
Weakness · CWE (1)
- CWE-77 Improper Neutralization of Special Elements used in a Command weakness