Name | 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-1591-1, DLA-817-1 |
Debian Bugs | 853232 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
libphp-phpmailer (PTS) | bullseye | 6.2.0-2 | fixed |
bookworm | 6.6.3-1 | fixed | |
sid, trixie | 6.9.1-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
libphp-phpmailer | source | wheezy | 5.1-1.3+deb7u1 | DLA-817-1 | ||
libphp-phpmailer | source | jessie | 5.2.9+dfsg-2+deb8u4 | DLA-1591-1 | ||
libphp-phpmailer | source | (unstable) | 5.2.14+dfsg-2.3 | 853232 |
Fixed by: https://github.com/PHPMailer/PHPMailer/commit/ad4cb09682682da2217799a0c521d4cdc6753402 (v5.2.22)
http://kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysis/