Vulnerability in PHPMailer's msgHTML method
phpmailer_project phpmailer
At a glance
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.
Source description · CVE List / CNA
System impact
CVSS summary v3.0
- Published:
- Updated:
- EPSS:
- 2.143%
- Exploited in attacks:
- Not confirmed
- Ransomware campaigns:
- Not confirmed
- Attack vector:
- Local
Affected software
Vendor, product and affected version ranges.
| Vendor | Product | Affected versions |
|---|---|---|
| Vendor:phpmailer_project | phpmailer | Affected versions:≤ 5.2.21Show full version range for phpmailer
|
1–1 of 1 · Page 1 of 1
CVSS scores and metrics3
[email protected] · NVD (Primary)Primary5.5 / 10MediumCVSS 3.0Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- None
- Availability
- None
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NCVE-2017-5223 · OSV (source-vector)5.5 / 10MediumCVSS 3.0Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- None
- Availability
- None
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N[email protected] · NVD (Primary)2.1 / 10LowCVSS 2.0Details
- Attack complexity
- Low
- Confidentiality
- Partial
- Integrity
- None
- Availability
- None
- Attack vector
- Local
- Authentication
- Not required
Source vector
AV:L/AC:L/Au:N/C:P/I:N/A:NCVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.
Sources and advisories8
This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences