Information disclosure in Phpmailer Project
CVE-2017-5223
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.
Vulnerability class: Information Disclosure
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS: 0.022 (81.5th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 81st percentile — 81.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.022 · newest: 0.022 · change: 0.000
Affected products
Weakness classification (CWE)
Public proof-of-concept exploits
References
- www.securityfocus.com/bid/95328 (VDB Entry, Third Party Advisory, vdb-entry)
- kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vu… (Exploit, Third Party Advisory)
- www.exploit-db.com/exploits/43056/ (exploit)
- github.com/PHPMailer/PHPMailer/blob/master/SECURITY.md (Patch, Third Party Advisory, Issue Tracking)
Frequently asked questions
- What is CVE-2017-5223?
- CVE-2017-5223 is a medium-severity vulnerability in Phpmailer Project, classified under Information Disclosure. CVSS score: 5.5/10. Published 2017-01-16.
- How severe is CVE-2017-5223?
- Medium severity. CVSS v3 base score is 5.5 out of 10.
- Is CVE-2017-5223 known to be exploited?
- 138 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.