The Net::Ping::External extension through 0.15 for Perl does not properly sanitize arguments (e.g., invalid hostnames) containing shell metacharacters before use of backticks in External.pm, allowing for shell command injection and arbitrary command execution if untrusted input is used.
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Net-ping-external | Net-ping-external_project | * | 0.15 (including) |
Libnet-ping-external-perl | Ubuntu | artful | * |
Libnet-ping-external-perl | Ubuntu | esm-apps/xenial | * |
Libnet-ping-external-perl | Ubuntu | trusty | * |
Libnet-ping-external-perl | Ubuntu | xenial | * |
Libnet-ping-external-perl | Ubuntu | zesty | * |
Command injection vulnerabilities typically occur when:
Many protocols and products have their own custom command language. While OS or shell command strings are frequently discovered and targeted, developers may not realize that these other command languages might also be vulnerable to attacks. Command injection is a common problem with wrapper programs.