CVEvulnerability
CVE-2017-5223
5.5 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2017-01-16
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.0 ([email protected])
- 5.5 MEDIUM — CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CVSS 2.0 ([email protected])
- 2.1 LOW — AV:L/AC:L/Au:N/C:P/I:N/A:N
- Weaknesses
- CWE-200
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.
Affected configurations
• phpmailer project phpmailer (<= 5.2.21)
Related
Weakness · CWE (1)
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor weakness
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/95328 Third Party Advisory, VDB Entry
- https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.md Issue Tracking, Patch, Third Party Advisory
- https://www.exploit-db.com/exploits/43056/ www.exploit-db.com
- http://kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysis/ Exploit, Third Party Advisory
- http://www.securityfocus.com/bid/95328 Third Party Advisory, VDB Entry
- https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.md Issue Tracking, Patch, Third Party Advisory
- https://www.exploit-db.com/exploits/43056/ www.exploit-db.com