Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
PHPMailer versions before 6.5.0 are affected. If a function named php is defined in an application, PHPMailer calls it by default when validating email addresses, such as through validateAddress(), instead of the built-in validator. An attacker would first need to inject code into the application, so the impact is limited to providing a trigger path. Upgrade to PHPMailer 6.5.0 or later, which stops accepting simple strings as validator function names.
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.1 | High | 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | CNA (@huntrdev) |
- CISA KEV Not listed.
- EPSS 0.023, the 83rd percentile, on 8 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 16 Jun 2021, 15:58 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-77mr-wc79-m8j3
- OSV: GHSA-77mr-wc79-m8j3
- github.com/PHPMailer/PHPMailer/security/advisories/GHSA-77mr-wc79-m8j3
- nvd.nist.gov/vuln/detail/CVE-2021-3603
- github.com/PHPMailer/PHPMailer/commit/45f3c18dc6a2de1cb1bf49b9b249a9ee36a5f7f3
- github.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2021-3603.yaml
- github.com/PHPMailer/PHPMailer
- github.com/PHPMailer/PHPMailer/releases/tag/v6.5.0
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3YRMWGA4VTMXFB22KICMB7YMFZNFV3EJ
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJYSOFCUBS67J3TKR74SD3C454N7VTYM
- web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-3603
- www.huntr.dev/bounties/1-PHPMailer/PHPMailer