CVE-2017-5223
libphp-phpmailer - security update
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.
How to fix CVE-2017-5223
To remediate CVE-2017-5223, upgrade the affected package to a fixed version below.
- —upgrade to 5.2.14+dfsg-2.3 or later
- —upgrade to 5.2.9+dfsg-2+deb8u4 or later
- —upgrade to 5.1-1.3+deb7u1 or later
- —upgrade to 5.2.22 or later
Is CVE-2017-5223 being exploited?
Low — EPSS is 2.9%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- from 0, < 5.2.14+dfsg-2.3
- from 0, < 5.2.9+dfsg-2+deb8u4
- from 0, < 5.1-1.3+deb7u1
- >= 5.0.0, < 5.2.22
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.5 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
References (9)
- ADVISORYnvd.nist.gov/vuln/detail/CVE-2017-5223
- ADVISORYsecurity-tracker.debian.org/tracker/CVE-2017-5223
- WEBkalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysis
- WEBgithub.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2017-5223.yaml