GHSA-4x5h-cr29-fhp6 · Severity: medium · Ecosystem: composer — Local file disclosure in PHPMailer
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.
Conclusion & alert: CVE-2017-5223 is rated High Exploit Risk (67.3/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 2.92%). Core evidence: 2 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| 43056 | exploit_db | edb | 2017-10-25 | Exploit-DB ↗ |
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-03 | 3.00% | 2.92% | -0.08% |
| 2 | 2026-05-22 | 2.92% | 3.00% | +0.08% |
| 3 | 2026-03-25 | — | 2.92% | — |
Full EPSS history (23 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 5.5 | 3.0 | MEDIUM |
|
1.8 | 3.6 | [email protected] |
| 2.1 | 2.0 | LOW |
|
3.9 | 2.9 | [email protected] |
GHSA-4x5h-cr29-fhp6 · Severity: medium · Ecosystem: composer — Local file disclosure in PHPMailer
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2017-5223 not yet assigned priority: Debian including 1 source packages (libphp-phpmailer), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2017-5223 |
suse
|
low | — | https://www.suse.com/security/cve/CVE-2017-5223/ |
ubuntu
|
medium | CVE-2017-5223 medium priority: Ubuntu including 1 source packages (libphp-phpmailer), 16 status rows across 16 suites (artful, bionic, cosmic, disco, eoan, focal, groovy, hirsute, impish, jammy, precise, trusty, upstream, xenial, yakkety, zesty): not-affected 9, ignored 4, released 2, DNE 1. | https://ubuntu.com/security/CVE-2017-5223 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| phpmailer_project | phpmailer | <= 5.2.21 | cpe:2.3:a:phpmailer_project:phpmailer:*:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| http://kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysis/ | Exploit Third Party Advisory |
| http://www.securityfocus.com/bid/95328 | Third Party Advisory VDB Entry |
| https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.md | Issue Tracking Patch Third Party Advisory |
| https://www.exploit-db.com/exploits/43056/ |