CVE-2017-5223 Details
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
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysis/ | CVE | ExploitThird Party Advisory |
| https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.md | CVE | Issue TrackingPatchThird Party Advisory |
| https://www.exploit-db.com/exploits/43056/ | CVE | |
| http://www.securityfocus.com/bid/95328 | CVE | Third Party AdvisoryVDB Entry |
| http://kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysis/ | [email protected] | ExploitThird Party Advisory |
| https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.md | [email protected] | Issue TrackingPatchThird Party Advisory |
| https://www.exploit-db.com/exploits/43056/ | [email protected] | |
| http://www.securityfocus.com/bid/95328 | [email protected] | Third Party AdvisoryVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-200 | Exposure of Sensitive Information to an Unauthorized Actor | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| phpmailer project phpmailer | <= 5.2.21 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| May 13, 2026 | CVE Status Change | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Oct 28, 2017 | CVE Modified | [email protected] |
| Jan 18, 2017 | Initial Analysis | [email protected] |
| Jan 18, 2017 | CVE Modified | [email protected] |