CVE-2017-5223
publishedPackage status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Debian | jessie | libphp-phpmailer | Advisory build | 5.2.9+dfsg-2+deb8u4 | DLA-1591-1 |
| Ubuntu | xenial | libphp-phpmailer | Advisory build | 5.2.14+dfsg-1ubuntu0.1~esm1 | USN-5956-1 |
| Debian | wheezy | libphp-phpmailer | Advisory build | 5.1-1.3+deb7u1 | DLA-817-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
4- http://kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysis/
- 95328 http://www.securityfocus.com/bid/95328
- https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.md
- 43056 https://www.exploit-db.com/exploits/43056/
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 45fd3f2dba9eb54e4e4a243fbf566fca568da6a7af213622c8561f4610de33af
- Ingested
- 23 Sep 2026, 07:42:44 UTC
- Source record
- Official CVE record