Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
PHPMailer versions 5.0.0 before 5.2.27 and 6.0.0 before 6.0.6 are vulnerable to object injection when phar:// paths are passed to addAttachment() and other functions that accept local paths. An attacker who can supply such paths to the application may be able to trigger object injection, possibly leading to remote code execution. Upgrade to 5.2.27 or 6.0.6; as a workaround, block paths containing URL-protocol prefixes such as phar://.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 8.8 | High | 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | GitHub Advisory Database |
- CISA KEV Not listed.
- EPSS 0.022, the 83rd percentile, on 23 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 5 Mar 2020, 21:13 UTC Published by the maintainers as a GitHub repository advisory
- 31 Oct 2026, 14:30 UTC First seen by agentprime
- 31 Oct 2026, 14:30 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-7w4p-72j7-v7c2
- OSV: GHSA-7w4p-72j7-v7c2
- github.com/PHPMailer/PHPMailer/security/advisories/GHSA-7w4p-72j7-v7c2
- nvd.nist.gov/vuln/detail/CVE-2018-19296
- github.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2018-19296.yaml
- github.com/PHPMailer/PHPMailer/releases/tag/v5.2.27
- github.com/PHPMailer/PHPMailer/releases/tag/v6.0.6
- lists.debian.org/debian-lts-announce/2018/12/msg00020.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3B5WDPGUFNPG4NAZ6G4BZX43BKLAVA5B
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KPU66INRFY5BQ3ESVPRUXJR4DXQAFJVT
- lists.fedoraproject.org/archives/list/[email protected]/message/3B5WDPGUFNPG4NAZ6G4BZX43BKLAVA5B
- lists.fedoraproject.org/archives/list/[email protected]/message/KPU66INRFY5BQ3ESVPRUXJR4DXQAFJVT
- www.debian.org/security/2018/dsa-4351