CVE-2017-5223
Last modified
CVE-2017-5223 is a vulnerability of currently unknown severity. 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. EPSS estimates a 2.14% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Phpmailer Project | Phpmailer | <= 5.2.21 |
References
- http://kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysis/Exploit, Third Party Advisory
- http://www.securityfocus.com/bid/95328Third Party Advisory, VDB Entry
- https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.mdIssue Tracking, Patch, Third Party Advisory
- http://kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysis/Exploit, Third Party Advisory
- http://www.securityfocus.com/bid/95328Third Party Advisory, VDB Entry
- https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.mdIssue Tracking, Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2017-5223?
How severe is CVE-2017-5223?
How do I fix CVE-2017-5223?
Are you affected by CVE-2017-5223?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
