Description
The setFrom function in the Sendmail adapter in the zend-mail component before 2.4.11, 2.5.x, 2.6.x, and 2.7.x before 2.7.2, and Zend Framework before 2.4.11 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code via a \" (backslash double quote) in a crafted e-mail address.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 3
- PHPMailer < 5.2.20 with Exim MTA - Remote Code Execution EDB-42221 · webapps · Jun 21, 2017
- PHPMailer < 5.2.20 / SwiftMailer < 5.4.5-DEV / Zend Framework / zend-mail < 2.4.11 - 'AIO' 'PwnScriptum' Remote Code Execution EDB-40986 · webapps · Jan 2, 2017
- Zend Framework / zend-mail < 2.4.11 - Remote Code Execution EDB-40979 · webapps · Dec 30, 2016
GitHub 1 repository
-
heikipikker/exploit-CVE-2016-10034 ★ 0 · Oct 17, 2017
PHPMailer < 5.2.18 Remote Code Execution
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | zendframework/zend-mail | < 2.4.11 | 2.4.11 | GHSA-r9mw-gwx9-v3h5 |
| Packagist | zendframework/zend-mail | >= 2.5, <= 2.5.2 | — | GHSA-r9mw-gwx9-v3h5 |
| Packagist | zendframework/zend-mail | >= 2.6, <= 2.6.2 | — | GHSA-r9mw-gwx9-v3h5 |
| Packagist | zendframework/zend-mail | >= 2.7, < 2.7.2 | 2.7.2 | GHSA-r9mw-gwx9-v3h5 |
References
- GLSA-201804-10 vendor-advisory
- 42221 exploit
- https://framework.zend.com/security/advisory/ZF2016-04
- https://legalhackers.com/advisories/ZendFramework-Exploit-ZendMail-Remote-Code-Exec-CVE-2016-10034-Vuln.html
- 40979 exploit
- 1037539 vdb-entry
- 40986 exploit
- 95144 vdb-entry