VDB

CVE-2021-3603

CVE-2021-3603 PUBLISHED CVSS 8.1 HIGH

Inclusion of Functionality from Untrusted Control Sphere in PHPMailer/PHPMailer

Reported by @huntrdev · Published June 17, 2021

phpmailer/phpmailer is fixed in 6.5.0 and 6.4.1 (Packagist)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
phpmailer/phpmailerPackagist6.5.0, 6.4.1
phpmailerBitnami6.4.2
PHPMailerPHPMailer6.5.0
phpmailerphpmailer_project6.4.1
phpmailerBitnami6.4.2

Risk scores

CVSS 3.1
8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
PHPMailerPHPMailerunspecified
PHPMailerPHPMailer*
phpmailerphpmailer0

Timeline

  • Jun 17, 2021 CVE Published
  • Jun 19, 2021 EPSS Score (30 in total, the first dated here)
  • Feb 7, 2024 CVE Updated
  • Jan 25, 2026 PoC Published
  • Mar 17, 2026 Security Advisory (4 in total, the first dated here)
  • Jul 29, 2026 Coalition ESS Score
  • Aug 6, 2026 Distribution Patch (2 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-3603
vulnetix vdb fixes CVE-2021-3603

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-3603/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›