Security mailing lists by PureSourceCode

CVE-2021-3603

HIGH 8.1CVSS 3.1

PHPMailer untrusted code may be run from an overridden address validator

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
17 Jun 2021
Last modified
17 Jun 2026
Assigned by
security@huntr.dev
NVD status
Modified
Weakness
CWE-74CWE-829
Also known as
BIT-phpmailer-2021-3603GHSA-77mr-wc79-m8j3
Sources
NVDJSONOSV GHSA-77mr-wc79-m8j3JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security@huntr.dev (Secondary) CVSS 3.1 HIGH 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 HIGH 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD phpmailer_project phpmailer
cpe:2.3:a:phpmailer_project:phpmailer:*:*:*:*:*:*:*:*
<= 6.4.1
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
= 33
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
= 34
OSV Packagist phpmailer/phpmailer < 6.5.0 6.5.0

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 17 Jun 2021)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 22 Jun 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.