An issue was discovered in PHPMailer before 5.2.22
Published Jan 16, 2017
5.5
MEDIUMCVSS 3.0
EPSS 2.16%
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.
Affected products
No data.
- ≤ 5.2.21
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
AV:L/AC:L/Au:N/C:P/I:N/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (27 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.16% (0.02161) | 81.55th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.14% (0.02143) | 79.62th | v5 (v2026.06.15) |
| Mar 25, 2026 | 2.92% (0.02922) | 86.29th | v4 (v2025.03.14) |
| Mar 18, 2026 | 12.73% (0.12728) | 93.91th | v4 (v2025.03.14) |
| Mar 16, 2026 | 11.62% (0.11616) | 93.55th | v4 (v2025.03.14) |
| Nov 21, 2025 | 8.90% (0.08899) | 92.22th | v4 (v2025.03.14) |
| Nov 18, 2025 | 6.07% (0.06069) | 89.83th | v4 (v2025.03.14) |
| Apr 21, 2025 | 8.90% (0.08899) | 92.06th | v4 (v2025.03.14) |
| Mar 30, 2025 | 7.33% (0.07333) | 90.83th | v4 (v2025.03.14) |
| Mar 29, 2025 | 39.15% (0.39150) | 95.90th | v4 (v2025.03.14) |
| Mar 28, 2025 | 7.33% (0.07333) | 90.84th | v4 (v2025.03.14) |
| Mar 27, 2025 | 39.15% (0.39150) | 96.78th | v4 (v2025.03.14) |
| Mar 20, 2025 | 12.88% (0.12875) | 93.50th | v4 (v2025.03.14) |
| Mar 19, 2025 | 39.15% (0.39150) | 96.84th | v4 (v2025.03.14) |
| Mar 17, 2025 | 12.88% (0.12875) | 93.48th | v4 (v2025.03.14) |
| Dec 17, 2024 | 74.94% (0.74945) | 98.36th | v3 (v2023.03.01) |
| Dec 12, 2024 | 91.37% (0.91366) | 99.03th | v3 (v2023.03.01) |
| Sep 3, 2024 | 92.33% (0.92330) | 99.04th | v3 (v2023.03.01) |
| Aug 12, 2024 | 93.43% (0.93430) | 99.14th | v3 (v2023.03.01) |
| Mar 7, 2023 | 95.09% (0.95092) | 98.83th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.04% (0.02042) | 79.40th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.04% (0.02042) | 77.58th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.04% (0.02042) | 56.46th | v2 (v2022.01.01) |
| Feb 3, 2022 | 4.50% (0.04504) | 76.47th | v1 |
| Jan 6, 2022 | 4.50% (0.04504) | 76.26th | v1 |
| Sep 1, 2021 | 4.50% (0.04504) | 84.13th | v1 |
| Apr 14, 2021 | 4.50% (0.04504) | 0.00th | v1 |
References (9)
- http://kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysis/ x_refsource_MISCExploitThird Party Advisory
- http://www.securityfocus.com/bid/95328 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://github.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2017-5223.yaml
- https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.md x_refsource_MISCIssue TrackingPatchThird Party Advisory
- https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.22
- https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-4x5h-cr29-fhp6
- https://github.com/advisories/GHSA-4x5h-cr29-fhp6 Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-5223
- https://www.exploit-db.com/exploits/43056/ exploitx_refsource_EXPLOIT-DB
| Link | Providers | Tags |
|---|---|---|
| http://kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysis/ | x_refsource_MISCExploitThird Party Advisory | |
| http://www.securityfocus.com/bid/95328 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| https://github.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2017-5223.yaml | ||
| https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.md | x_refsource_MISCIssue TrackingPatchThird Party Advisory | |
| https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.22 | ||
| https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-4x5h-cr29-fhp6 | ||
| https://github.com/advisories/GHSA-4x5h-cr29-fhp6 | Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-5223 | ||
| https://www.exploit-db.com/exploits/43056/ | exploitx_refsource_EXPLOIT-DB |
Change history (0)
No recorded changes yet.