{"api_version":"1","generated_at":"2026-04-23T07:56:14+00:00","cve":"CVE-2021-3603","urls":{"html":"https://cve.report/CVE-2021-3603","api":"https://cve.report/api/cve/CVE-2021-3603.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-3603","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-3603"},"summary":{"title":"CVE-2021-3603","description":"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.","state":"PUBLIC","assigner":"security@huntr.dev","published_at":"2021-06-17 12:15:00","updated_at":"2023-11-07 03:38:00"},"problem_types":["CWE-829"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3YRMWGA4VTMXFB22KICMB7YMFZNFV3EJ/","name":"FEDORA-2021-ef548cb234","refsource":"","tags":[],"title":"[SECURITY] Fedora 33 Update: php-phpmailer6-6.5.0-1.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/PHPMailer/PHPMailer/commit/45f3c18dc6a2de1cb1bf49b9b249a9ee36a5f7f3","name":"https://github.com/PHPMailer/PHPMailer/commit/45f3c18dc6a2de1cb1bf49b9b249a9ee36a5f7f3","refsource":"MISC","tags":[],"title":"Deny string-based callables altogether · PHPMailer/PHPMailer@45f3c18 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FJYSOFCUBS67J3TKR74SD3C454N7VTYM/","name":"FEDORA-2021-bfc34b3d5c","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: php-phpmailer6-6.5.0-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJYSOFCUBS67J3TKR74SD3C454N7VTYM/","name":"FEDORA-2021-bfc34b3d5c","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: php-phpmailer6-6.5.0-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.huntr.dev/bounties/1-PHPMailer/PHPMailer/","name":"https://www.huntr.dev/bounties/1-PHPMailer/PHPMailer/","refsource":"CONFIRM","tags":[],"title":"huntr: Inclusion of Functionality from Untrusted Control Sphere PHP Vulnerability in PHPMailer","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3YRMWGA4VTMXFB22KICMB7YMFZNFV3EJ/","name":"FEDORA-2021-ef548cb234","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 33 Update: php-phpmailer6-6.5.0-1.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3603","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3603","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"3603","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"33","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3603","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3603","vulnerable":"1","versionEndIncluding":"6.4.1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"phpmailer_project","cpe5":"phpmailer","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-3603","qid":"183198","title":"Debian Security Update for libphp-phpmailer (CVE-2021-3603)"},{"cve":"CVE-2021-3603","qid":"199517","title":"Ubuntu Security Notification for PHPMailer Vulnerabilities (USN-5956-1)"},{"cve":"CVE-2021-3603","qid":"281664","title":"Fedora Security Update for php (FEDORA-2021-ef548cb234)"},{"cve":"CVE-2021-3603","qid":"281665","title":"Fedora Security Update for php (FEDORA-2021-bfc34b3d5c)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@huntr.dev","ID":"CVE-2021-3603","STATE":"PUBLIC","TITLE":"Inclusion of Functionality from Untrusted Control Sphere in PHPMailer/PHPMailer"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"PHPMailer","version":{"version_data":[{"version_affected":"<","version_value":"6.5.0"}]}}]},"vendor_name":"PHPMailer"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-829 Inclusion of Functionality from Untrusted Control Sphere"}]}]},"references":{"reference_data":[{"name":"https://www.huntr.dev/bounties/1-PHPMailer/PHPMailer/","refsource":"CONFIRM","url":"https://www.huntr.dev/bounties/1-PHPMailer/PHPMailer/"},{"name":"https://github.com/PHPMailer/PHPMailer/commit/45f3c18dc6a2de1cb1bf49b9b249a9ee36a5f7f3","refsource":"MISC","url":"https://github.com/PHPMailer/PHPMailer/commit/45f3c18dc6a2de1cb1bf49b9b249a9ee36a5f7f3"},{"refsource":"FEDORA","name":"FEDORA-2021-bfc34b3d5c","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FJYSOFCUBS67J3TKR74SD3C454N7VTYM/"},{"refsource":"FEDORA","name":"FEDORA-2021-ef548cb234","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3YRMWGA4VTMXFB22KICMB7YMFZNFV3EJ/"}]},"source":{"advisory":"1-PHPMailer/PHPMailer","discovery":"EXTERNAL"}},"nvd":{"publishedDate":"2021-06-17 12:15:00","lastModifiedDate":"2023-11-07 03:38:00","problem_types":["CWE-829"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH"},"exploitabilityScore":2.2,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.8},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:phpmailer_project:phpmailer:*:*:*:*:*:*:*:*","versionEndIncluding":"6.4.1","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"3603","Ordinal":"210167","Title":"CVE-2021-3603","CVE":"CVE-2021-3603","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"3603","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"3603","Ordinal":"2","NoteData":"2021-06-17","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"3603","Ordinal":"3","NoteData":"2021-06-25","Type":"Other","Title":"Modified"}]}}}