Zeta Components Mail Arbitrary code execution via a crafted email address
Impact
The send function in the ezcMailMtaTransport class in Zeta Components Mail before 1.8.2 does not properly restrict the set of characters used in the ezcMail returnPath property, which might allow remote attackers to execute arbitrary code via a crafted email address, as demonstrated by one containing "-X/path/to/wwwroot/file.php."
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 1.8.2Ecosystem versions | 1.8.2 |
Version evidence: OSV · GHSA-hgr8-g756-vmg9
View original version evidence (41 explicit versions)
Original source description
The send function in the ezcMailMtaTransport class in Zeta Components Mail before 1.8.2 does not properly restrict the set of characters used in the ezcMail returnPath property, which might allow remote attackers to execute arbitrary code via a crafted email address, as demonstrated by one containing "-X/path/to/wwwroot/file.php."
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2017-15806
- Source reference github.com/zetacomponents/Mail/issues/58
- Security advisory github.com/FriendsOfPHP/security-advisories/blob/master/zetacomponents/mail/CVE-2017-15806.yaml
- Source reference github.com/zetacomponents/Mail
- Release notes github.com/zetacomponents/Mail/releases/tag/1.8.2
- Security advisory kay-malwarebenchmark.github.io/blog/cve-2017-15806-critical-rce-vulnerability
- Security advisory kay-malwarebenchmark.github.io/blog/cve-2017-15806-yuan-cheng-dai-ma-zhi-xing-lou-dong
- Public exploit reference www.exploit-db.com/exploits/43155
- Source reference www.securityfocus.com/bid/101866