CVE-2021-3603

Summary

CVECVE-2021-3603
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-06-17 12:15:00 UTC
Updated2023-11-07 03:38:00 UTC
DescriptionPHPMailer 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.

Risk And Classification

Problem Types: CWE-829

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Fedoraproject Fedora 33 All All All
Operating System Fedoraproject Fedora 34 All All All
Application Phpmailer Project Phpmailer All All All All

References

ReferenceSourceLinkTags
[SECURITY] Fedora 33 Update: php-phpmailer6-6.5.0-1.fc33 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
Deny string-based callables altogether · PHPMailer/PHPMailer@45f3c18 · GitHub MISC github.com
[SECURITY] Fedora 34 Update: php-phpmailer6-6.5.0-1.fc34 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] Fedora 34 Update: php-phpmailer6-6.5.0-1.fc34 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
huntr: Inclusion of Functionality from Untrusted Control Sphere PHP Vulnerability in PHPMailer CONFIRM www.huntr.dev
[SECURITY] Fedora 33 Update: php-phpmailer6-6.5.0-1.fc33 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 183198 Debian Security Update for libphp-phpmailer (CVE-2021-3603)
  • 199517 Ubuntu Security Notification for PHPMailer Vulnerabilities (USN-5956-1)
  • 281664 Fedora Security Update for php (FEDORA-2021-ef548cb234)
  • 281665 Fedora Security Update for php (FEDORA-2021-bfc34b3d5c)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report