Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. phpmailer/phpmailer
  4. ›
  5. CVE-2017-5223

CVE-2017-5223: Local File Disclosure

January 16, 2017 (updated October 28, 2017)

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.

References

  • www.securityfocus.com/bid/95328
  • nvd.nist.gov/vuln/detail/CVE-2017-5223

Code Behaviors & Features

Detect and mitigate CVE-2017-5223 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 5.2.21

Fixed versions

  • 5.2.22

Solution

Upgrade to version 5.2.22 or above.

Impact 5.5 MEDIUM

CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

packagist/phpmailer/phpmailer/CVE-2017-5223.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:42 +0000.