Lookup for vulnerable packages by Package URL.

Purlpkg:deb/debian/libphp-phpmailer@6.6.3-1
Typedeb
Namespacedebian
Namelibphp-phpmailer
Version6.6.3-1
Qualifiers
Subpath
Is_vulnerablefalse
Next_non_vulnerable_versionnull
Latest_non_vulnerable_versionnull
Affected_by_vulnerabilities
Fixing_vulnerabilities
0
url VCID-jca1-hyks-kud3
vulnerability_id VCID-jca1-hyks-kud3
summary
PHPMailer untrusted code may be run from an overridden address validator
If a function is defined that has the same name as the default built-in email address validation scheme (`php`), it will be called in default configuration as when no validation scheme is provided, the default scheme's callable `php` was being called. If an attacker is able to inject such a function into the application (a much bigger issue), it will be called whenever an email address is validated, such as when calling `validateAddress()`.

### Impact
Low impact – exploitation requires that an attacker can already inject code into an application, but it provides a trigger pathway.

### Patches
This is patched in PHPMailer 6.5.0 by denying the use of simple strings as validator function names, which is a very minor BC break.

### Workarounds
Inject your own email validator function.

### References
Reported by [Vikrant Singh Chauhan](mailto:vi@hackberry.xyz) via [huntr.dev](https://www.huntr.dev/).
[CVE-2021-3603](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-3603)

### For more information
If you have any questions or comments about this advisory:
* Open an issue in [the PHPMailer project](https://github.com/PHPMailer/PHPMailer)
* [Email us](mailto:phpmailer@synchromedia.co.uk).
references
0
reference_url https://api.first.org/data/v1/epss?cve=CVE-2021-3603
reference_id
reference_type
scores
0
value 0.00778
scoring_system epss
scoring_elements 0.73595
published_at 2026-04-07T12:55:00Z
1
value 0.00778
scoring_system epss
scoring_elements 0.73685
published_at 2026-04-21T12:55:00Z
2
value 0.00778
scoring_system epss
scoring_elements 0.73693
published_at 2026-04-18T12:55:00Z
3
value 0.00778
scoring_system epss
scoring_elements 0.73684
published_at 2026-04-16T12:55:00Z
4
value 0.00778
scoring_system epss
scoring_elements 0.73641
published_at 2026-04-13T12:55:00Z
5
value 0.00778
scoring_system epss
scoring_elements 0.73649
published_at 2026-04-12T12:55:00Z
6
value 0.00778
scoring_system epss
scoring_elements 0.73666
published_at 2026-04-11T12:55:00Z
7
value 0.00778
scoring_system epss
scoring_elements 0.73589
published_at 2026-04-01T12:55:00Z
8
value 0.00778
scoring_system epss
scoring_elements 0.73598
published_at 2026-04-02T12:55:00Z
9
value 0.00778
scoring_system epss
scoring_elements 0.73622
published_at 2026-04-04T12:55:00Z
10
value 0.00778
scoring_system epss
scoring_elements 0.73644
published_at 2026-04-09T12:55:00Z
11
value 0.00778
scoring_system epss
scoring_elements 0.73631
published_at 2026-04-08T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2021-3603
1
reference_url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3603
reference_id
reference_type
scores
url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3603
2
reference_url https://github.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2021-3603.yaml
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2021-3603.yaml
3
reference_url https://github.com/PHPMailer/PHPMailer
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/PHPMailer/PHPMailer
4
reference_url https://github.com/PHPMailer/PHPMailer/commit/45f3c18dc6a2de1cb1bf49b9b249a9ee36a5f7f3
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/PHPMailer/PHPMailer/commit/45f3c18dc6a2de1cb1bf49b9b249a9ee36a5f7f3
5
reference_url https://github.com/PHPMailer/PHPMailer/releases/tag/v6.5.0
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/PHPMailer/PHPMailer/releases/tag/v6.5.0
6
reference_url https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-77mr-wc79-m8j3
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
2
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-77mr-wc79-m8j3
7
reference_url https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3YRMWGA4VTMXFB22KICMB7YMFZNFV3EJ
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3YRMWGA4VTMXFB22KICMB7YMFZNFV3EJ
8
reference_url https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3YRMWGA4VTMXFB22KICMB7YMFZNFV3EJ/
reference_id
reference_type
scores
url https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3YRMWGA4VTMXFB22KICMB7YMFZNFV3EJ/
9
reference_url https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJYSOFCUBS67J3TKR74SD3C454N7VTYM
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJYSOFCUBS67J3TKR74SD3C454N7VTYM
10
reference_url https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJYSOFCUBS67J3TKR74SD3C454N7VTYM/
reference_id
reference_type
scores
url https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJYSOFCUBS67J3TKR74SD3C454N7VTYM/
11
reference_url https://nvd.nist.gov/vuln/detail/CVE-2021-3603
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2021-3603
12
reference_url https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-3603
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-3603
13
reference_url https://www.huntr.dev/bounties/1-PHPMailer/PHPMailer
reference_id
reference_type
scores
0
value 8.1
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://www.huntr.dev/bounties/1-PHPMailer/PHPMailer
14
reference_url https://www.huntr.dev/bounties/1-PHPMailer/PHPMailer/
reference_id
reference_type
scores
url https://www.huntr.dev/bounties/1-PHPMailer/PHPMailer/
15
reference_url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=991666
reference_id 991666
reference_type
scores
url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=991666
16
reference_url https://github.com/advisories/GHSA-77mr-wc79-m8j3
reference_id GHSA-77mr-wc79-m8j3
reference_type
scores
0
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-77mr-wc79-m8j3
17
reference_url https://usn.ubuntu.com/5956-1/
reference_id USN-5956-1
reference_type
scores
url https://usn.ubuntu.com/5956-1/
fixed_packages
0
url pkg:deb/debian/libphp-phpmailer@6.6.3-1
purl pkg:deb/debian/libphp-phpmailer@6.6.3-1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/libphp-phpmailer@6.6.3-1
aliases CVE-2021-3603, GHSA-77mr-wc79-m8j3
risk_score 4.0
exploitability 0.5
weighted_severity 8.0
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-jca1-hyks-kud3
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:deb/debian/libphp-phpmailer@6.6.3-1