Information Exposure Affecting libphp-phpmailer package, versions <5.2.9+dfsg-2+deb8u4


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

Exploit Maturity
Mature
EPSS
74.94% (99th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN8-LIBPHPPHPMAILER-297975
  • published16 Jan 2017
  • disclosed16 Jan 2017

Introduced: 16 Jan 2017

CVE-2017-5223  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

Upgrade Debian:8 libphp-phpmailer to version 5.2.9+dfsg-2+deb8u4 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libphp-phpmailer package and not the libphp-phpmailer package as distributed by Debian. See How to fix? for Debian:8 relevant fixed versions and status.

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.