{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-3603","published":"2021-06-17T12:15:08.150000Z","last_modified":"2026-06-17T04:05:25.257000Z","status":"Modified","cvss":{"version":"3.1","score":8.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-829"],"cpes":[{"criteria":"cpe:2.3:a:phpmailer_project:phpmailer:*:*:*:*:*:*:*:*","part":"a","vendor":"phpmailer_project","product":"phpmailer","version_end_including":"6.4.1"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"33"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"34"}],"cpes_truncated":false,"vendors":["phpmailer_project","fedoraproject"],"products":["phpmailer_project/phpmailer","fedoraproject/fedora"],"epss":{"score":0.0226,"percentile":0.83702,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-77mr-wc79-m8j3","ecosystem":"Packagist","name":"phpmailer/phpmailer","purl":"pkg:composer/phpmailer/phpmailer","ranges":[{"introduced":"0","fixed":"6.5.0"}],"versions":["v5.2.10","v5.2.11","v5.2.12","v5.2.13","v5.2.14","v5.2.15","v5.2.16","v5.2.17","v5.2.18","v5.2.19","v5.2.2","v5.2.20","v5.2.21","v5.2.22","v5.2.23","v5.2.24","v5.2.25","v5.2.26","v5.2.27","v5.2.28","v5.2.4","v5.2.5","v5.2.6","v5.2.7","v5.2.8","v5.2.9","v6.0.0","v6.0.0rc1","v6.0.0rc2","v6.0.0rc3","v6.0.0rc4","v6.0.0rc5","v6.0.1","v6.0.2","v6.0.3","v6.0.4","v6.0.5","v6.0.6","v6.0.7","v6.1.0","v6.1.1","v6.1.2","v6.1.3","v6.1.4","v6.1.5","v6.1.6","v6.1.7","v6.1.8","v6.2.0","v6.3.0","v6.4.0","v6.4.1"],"versions_truncated":false}],"severity":"high","priority_score":64,"links":{"html_es":"/es/cve/CVE-2021-3603/","html_en":"/en/cve/CVE-2021-3603/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-3603","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-3603"},"untrusted":{"vendor_name":"Phpmailer Project","product_name":"Phpmailer","desc_en":"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":[{"untrusted_vendor":"PHPMailer","untrusted_product":"PHPMailer","versions":[]}],"references":[{"url":"https://github.com/PHPMailer/PHPMailer/commit/45f3c18dc6a2de1cb1bf49b9b249a9ee36a5f7f3","tags":["Patch","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3YRMWGA4VTMXFB22KICMB7YMFZNFV3EJ/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJYSOFCUBS67J3TKR74SD3C454N7VTYM/","tags":[]},{"url":"https://www.huntr.dev/bounties/1-PHPMailer/PHPMailer/","tags":["Product"]}]}}