PT-2017-16400 · Php+3 · Phpmailer+3

Yongxiang Li

·

Published

2017-01-10

·

Updated

2023-03-15

·

CVE-2017-5223

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions PHPMailer versions prior to 5.2.22
Description An issue in PHPMailer's msgHTML method allows it to apply transformations to an HTML document, making it usable as an email message body. One transformation converts relative image URLs into attachments using a script-provided base directory. If no base directory is provided, relative image URLs are treated as absolute local file paths and added as attachments. This can form a remote vulnerability if the msgHTML method is called with an unfiltered, user-supplied HTML document and no base directory is set. The impact of this issue is that arbitrary local files can be attached to email messages.
Recommendations For versions prior to 5.2.22, update to version 5.2.22 to resolve the issue. As a temporary workaround, consider validating input before using user-supplied file paths to minimize the risk of exploitation.

Exploit

Fix

Information Disclosure

Weakness Enumeration

Related Identifiers

ALT-PU-2017-1015
CVE-2017-5223
DLA-1591-1
DLA-817-1
GHSA-4X5H-CR29-FHP6
MGASA-2017-0022
USN-5956-1

Affected Products

Alt Linux
Linuxmint
Phpmailer
Ubuntu