Vulnerabilities · 2021 · Phpmailer Project
CVE-2021-3603
Phpmailer Project Phpmailer vulnerability
PHPMailer 6.4.1 and earlier contain a vulnerability that can result in untrusted code being called (if such code is injected into the host project's scope by other means). If the $patternselect parameter to validateAddress() is set to 'php' (the default, defined by PHPMailer::$validator), and the global namespace contains a function called php, it will be called in preference to the built-in validator of the same name. Mitigated in PHPMailer 6.5.0 by denying the use of simple strings as validator function names.
Affected products
Phpmailer, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Phpmailer Project Phpmailer runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/PHPMailer/PHPMailer/commit/45f3c18dc6a2de1cb1bf49b9b249a9ee36a5f7f3 · Patch
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F
- www.huntr.dev/bounties/1-PHPMailer/PHPMailer/
- nvd.nist.gov/vuln/detail/CVE-2021-3603
- cve.org/CVERecord?id=CVE-2021-3603
More vulnerabilities in Phpmailer Project products
CVE-2021-34551CVE-2020-36326CVE-2020-13625CVE-2018-19296CVE-2017-11503CVE-2017-5223CVE-2016-10045CVE-2016-10033All 10
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.