The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code by leveraging improper interaction between the escapeshellarg function and internal escaping performed in the mail function in PHP. NOTE: this vulnerability exists because of an incorrect fix for CVE-2016-10033.
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 |
---|---|---|---|
Phpmailer | Phpmailer_project | * | 5.2.20 (excluding) |
Libphp-phpmailer | Ubuntu | esm-apps/xenial | * |
Libphp-phpmailer | Ubuntu | precise | * |
Libphp-phpmailer | Ubuntu | trusty | * |
Libphp-phpmailer | Ubuntu | upstream | * |
Libphp-phpmailer | Ubuntu | xenial | * |
Libphp-phpmailer | Ubuntu | yakkety | * |
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.