{"schemaVersion":3,"id":"CVE-2021-3603","aliases":["MGASA-2021-0345","UBUNTU-CVE-2021-3603","DEBIAN-CVE-2021-3603"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-06-17T12:09:42.000Z","modified":"2024-08-03T17:01:07.074Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":5.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":5.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0226,"percentile":0.82716,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.0226},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0226,"percentile":0.82716}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0226,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0226,"percentile":0.82716}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere","description":"The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/829.html"}],"affected":[{"vendor":"debian","product":"libphp-phpmailer","name":"libphp-phpmailer","label":"libphp-phpmailer","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libphp-phpmailer","purlType":"deb","versions":[{"text":"< 6.6.3-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.6.3-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libphp-phpmailer","name":"libphp-phpmailer","label":"libphp-phpmailer","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libphp-phpmailer","purlType":"deb","versions":[{"text":"< 6.0.6-0.1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 6.2.0-2ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.0.6-0.1ubuntu0.1~esm1 | < 6.2.0-2ubuntu0.1~esm1","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"33","noFixRecorded":false,"fixedIn":null},{"text":"34","noFixRecorded":false,"fixedIn":null}],"versionsText":"33 | 34","eol":{"isEol":true,"eolDate":"2021-11-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"33","label":"33","eolFrom":"2021-11-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"mageia","product":"php-phpmailer","name":"php-phpmailer","label":"php-phpmailer","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/php-phpmailer","purlType":"rpm","versions":[{"text":"< 6.5.0-1.mga7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.5.0-1.mga7","eol":null,"hubHref":null},{"vendor":"mageia","product":"php-phpmailer","name":"php-phpmailer","label":"php-phpmailer","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/php-phpmailer","purlType":"rpm","versions":[{"text":"< 6.5.0-1.mga8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.5.0-1.mga8","eol":null,"hubHref":null},{"vendor":"phpmailer_project","product":"phpmailer","name":"phpmailer","label":"phpmailer","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 6.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 6.4.1","eol":null,"hubHref":"/vendor/phpmailer_project/phpmailer"},{"vendor":"phpmailer","product":"phpmailer","name":"phpmailer","label":"phpmailer","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, < 6.5.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, < 6.5.0","eol":null,"hubHref":"/vendor/phpmailer/phpmailer"}],"affectedCount":7,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://www.huntr.dev/bounties/1-PHPMailer/PHPMailer/","label":"www.huntr.dev/bounties/1-PHPMailer/PHPMailer/","hostname":"www.huntr.dev","tags":["X Refsource CONFIRM","REPORT","Product"]},{"url":"https://github.com/PHPMailer/PHPMailer/commit/45f3c18dc6a2de1cb1bf49b9b249a9ee36a5f7f3","label":"github.com/PHPMailer/PHPMailer/commit/45f3c18dc6a2de1cb1bf49b9b249a9ee36a5f7f3","hostname":"github.com","tags":["X Refsource MISC","REPORT","Patch","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJYSOFCUBS67J3TKR74SD3C454N7VTYM/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3YRMWGA4VTMXFB22KICMB7YMFZNFV3EJ/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://advisories.mageia.org/MGASA-2021-0345.html","label":"advisories.mageia.org/MGASA-2021-0345.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29183","label":"bugs.mageia.org/show_bug.cgi?id=29183","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://github.com/PHPMailer/PHPMailer/releases/tag/v6.5.0","label":"github.com/PHPMailer/PHPMailer/releases/tag/v6.5.0","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-77mr-wc79-m8j3","label":"github.com/PHPMailer/PHPMailer/security/advisories/GHSA-77mr-wc79-m8j3","hostname":"github.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-3603","label":"ubuntu.com/security/CVE-2021-3603","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5956-1","label":"ubuntu.com/security/notices/USN-5956-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3603","label":"www.cve.org/CVERecord?id=CVE-2021-3603","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3603","label":"security-tracker.debian.org/tracker/CVE-2021-3603","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["USN-5956-1"],"duplicates":[],"related":["USN-5956-1"]},"timeline":[{"kind":"published","date":"2021-06-17T12:09:42.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T17:01:07.074Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":33,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T21:46:04.713Z","stale":false,"partial":false}}