CVE-2017-5223
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 packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
phpmailer/phpmailerPackagist | >= 5.0.0, < 5.2.22 | 5.2.22 |
Affected products
1Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
11- github.com/PHPMailer/PHPMailer/blob/master/SECURITY.mdnvdIssue TrackingPatchThird Party AdvisoryWEB
- kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysis/nvdExploitThird Party Advisory
- www.securityfocus.com/bid/95328nvdThird Party AdvisoryVDB EntryWEB
- github.com/advisories/GHSA-4x5h-cr29-fhp6ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2017-5223ghsaADVISORY
- kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysisghsaWEB
- github.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2017-5223.yamlghsaWEB
- github.com/PHPMailer/PHPMailer/releases/tag/v5.2.22ghsaWEB
- github.com/PHPMailer/PHPMailer/security/advisories/GHSA-4x5h-cr29-fhp6ghsaWEB
- www.exploit-db.com/exploits/43056ghsaWEB
- www.exploit-db.com/exploits/43056/nvd
News mentions
0No linked articles in our index yet.