CVE-2017-5223
MEDIUMPHPMailer <5.2.22 - Code Injection
Title source: llmDescription
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.
Exploits (2)
References (4)
Scores
CVSS v3
5.5
EPSS
0.1162
EPSS Percentile
93.6%
Attack Vector
LOCAL
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Classification
CWE
CWE-200
Status
published
Affected Products (3)
phpmailer_project/phpmailer
< 5.2.21
phpmailer/phpmailer
< 5.2.22Packagist
n/a/n/a
Timeline
Published
Jan 16, 2017
Tracked Since
Feb 18, 2026