GitHub Advisory Database
GHSA-r9mw-gwx9-v3h5
zend-mail remote code execution via Sendmail adapter
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist | zendframework/zend-mail | All versions before 2.4.11 (fixed in 2.4.11) |
| Packagist | zendframework/zend-mail | From 2.5 up to and including 2.5.2 |
| Packagist | zendframework/zend-mail | From 2.6 up to and including 2.6.2 |
| Packagist | zendframework/zend-mail | From 2.7 before 2.7.2 (fixed in 2.7.2) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2016-10034
- https://framework.zend.com/security/advisory/ZF2016-04
- https://github.com/zendframework/zend-mail
- https://legalhackers.com/advisories/ZendFramework-Exploit-ZendMail-Remote-Code-Exec-CVE-2016-10034-Vuln.html
- https://security.gentoo.org/glsa/201804-10
- https://www.exploit-db.com/exploits/40979
- https://www.exploit-db.com/exploits/40986
- https://www.exploit-db.com/exploits/42221
- http://www.securityfocus.com/bid/95144
- http://www.securitytracker.com/id/1037539