Vulnerabilities · 2017 · Phpmailer Project
CVE-2017-5223
Phpmailer Project Phpmailer vulnerability
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.
Affected products
Phpmailer. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Phpmailer Project Phpmailer runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/PHPMailer/PHPMailer/blob/master/SECURITY.md · Patch
- kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability · Exploit
- www.securityfocus.com/bid/95328 · Third Party Advisory
- www.exploit-db.com/exploits/43056/
- nvd.nist.gov/vuln/detail/CVE-2017-5223
- cve.org/CVERecord?id=CVE-2017-5223
More vulnerabilities in Phpmailer Project products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.