Vulnerability Description
An issue was discovered in PHPMailer before 5.2.22. PHPMailer's msgHTML method applies transformations to an HTML document to make it usable as an email message body. One of the transformations is to convert relative image URLs into attachments using a script-provided base directory. If no base directory is provided, it resolves to /, meaning that relative image URLs get treated as absolute local file paths and added as attachments. To form a remote vulnerability, the msgHTML method must be called, passed an unfiltered, user-supplied HTML document, and must not set a base directory.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Phpmailer Project | Phpmailer | <= 5.2.21 |
Related Weaknesses (CWE)
References
- http://kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosExploitThird Party Advisory
- http://www.securityfocus.com/bid/95328Third Party AdvisoryVDB Entry
- https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.mdIssue TrackingPatchThird Party Advisory
- https://www.exploit-db.com/exploits/43056/
- http://kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosExploitThird Party Advisory
- http://www.securityfocus.com/bid/95328Third Party AdvisoryVDB Entry
- https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.mdIssue TrackingPatchThird Party Advisory
- https://www.exploit-db.com/exploits/43056/
FAQ
What is CVE-2017-5223?
CVE-2017-5223 is a vulnerability with a CVSS score of 5.5 (MEDIUM). An issue was discovered in PHPMailer before 5.2.22. PHPMailer's msgHTML method applies transformations to an HTML document to make it usable as an email message body. One of the transformations is to ...
How severe is CVE-2017-5223?
CVE-2017-5223 has been rated MEDIUM with a CVSS base score of 5.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2017-5223?
Check the references section above for vendor advisories and patch information. Affected products include: Phpmailer Project Phpmailer.