CVE-2017-5223

Summary

CVECVE-2017-5223
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2017-01-16 06:59:00 UTC
Updated2017-10-28 01:29:00 UTC
DescriptionAn 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.

Risk And Classification

Problem Types: CWE-200

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Phpmailer Project Phpmailer All All All All

References

ReferenceSourceLinkTags
PHPMailer < 5.2.21 - Local File Disclosure - PHP webapps Exploit EXPLOIT-DB www.exploit-db.com
PHPMailer CVE-2017-5223 Local Information Disclosure Vulnerability BID www.securityfocus.com Third Party Advisory, VDB Entry
PHPMailer CVE-2017-5223: Local Information Disclosure Vulnerability Analysis - Think outside of the box MISC kalilinux.co Exploit, Third Party Advisory
PHPMailer/SECURITY.md at master · PHPMailer/PHPMailer · GitHub MISC github.com Issue Tracking, Patch, Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 199517 Ubuntu Security Notification for PHPMailer Vulnerabilities (USN-5956-1)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report