cve.bz

CVE-2021-3603

8.1 highEPSS 2.3%Fix available

High (8.1). EPSS 2.3% estimated probability of exploitation activity in the next 30 days. Fixed in phpmailer/phpmailer 6.5.0.

On this page
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.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
2.3% (unchanged from 2.3% a week ago; 2.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 83rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-829 Inclusion of Functionality from Untrusted Control Sphere
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3603 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3603?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3603?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3603 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
PHPMailerbefore 6.5.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-77mr-wc79-m8j3Packagistphpmailer/phpmailer<6.5.06.5.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libphp-phpmailer6.6.3-1DEBIAN-CVE-2021-3603
UbuntuPro:16.04:LTSlibphp-phpmailer5.2.14+dfsg-1ubuntu0.1~esm1USN-5956-1
UbuntuPro:18.04:LTSlibphp-phpmailer5.2.14+dfsg-2.3+deb9u2ubuntu0.1~esm1USN-5956-1
UbuntuPro:20.04:LTSlibphp-phpmailer6.0.6-0.1ubuntu0.1~esm1UBUNTU-CVE-2021-3603 USN-5956-1
UbuntuPro:22.04:LTSlibphp-phpmailer6.2.0-2ubuntu0.1~esm1UBUNTU-CVE-2021-3603 USN-5956-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-829 (13).

References

Check your stackJSON