CVE-2021-3603

Inclusion of Functionality from Untrusted Control Sphere in PHPMailer/PHPMailer

Published Jun 17, 2021 CVSS 3.1 · 8.1 High EPSS 2.3% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-1277 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.
Github GHSA Github GHSA GHSA-77mr-wc79-m8j3 PHPMailer untrusted code may be run from an overridden address validator
Ubuntu USN Ubuntu USN USN-5956-1 PHPMailer vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
@huntrdev
Published
Updated
Aug 3, 2024, 5:01 PM
Reserved
Jun 15, 2021, 12:00 AM
Status
Modified
Published
Jun 17, 2021, 12:15 PM
Modified
Jun 17, 2026, 4:05 AM