Vulnerability in Phpmailer
CVE-2021-3603
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.023, 83.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Phpmailer — versions unspecified
- Phpmailer Project
- Fedoraproject Fedora — versions 33, 34
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (ARPSyndicate/cvemon, KatenKyoukotsu/devsecops, qquang/CTFs). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- www.huntr.dev/bounties/1-PHPMailer/PHPMailer/ (Product)
- github.com/PHPMailer/PHPMailer/commit/45f3c18dc6a2de1cb1bf49b9b249a9ee36a5f7f3 (Patch, Third Party Advisory)
- FEDORA-2021-bfc34b3d5c (vendor-advisory)
- FEDORA-2021-ef548cb234 (vendor-advisory)