Rapid7 Vulnerability & Exploit Database

FreeBSD: VID-7AE0BE99-D8BB-11E6-9B7F-D43D7E971A1B (CVE-2017-5223): phpmailer -- Remote Code Execution

Free InsightVM Trial No Credit Card Necessary
2024 Attack Intel Report Latest research by Rapid7 Labs
Back to Search

FreeBSD: VID-7AE0BE99-D8BB-11E6-9B7F-D43D7E971A1B (CVE-2017-5223): phpmailer -- Remote Code Execution

Severity
2
CVSS
(AV:L/AC:L/Au:N/C:P/I:N/A:N)
Published
01/10/2017
Created
07/25/2018
Added
01/13/2017
Modified
05/07/2019

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.

Solution(s)

  • freebsd-upgrade-package-phpmailer
  • freebsd-upgrade-package-tt-rss

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;