CVE-2021-34551: PHPMailer - Remote Code Execution
- Cve: CVE-2021-34551
- Name: PHPMailer - Remote Code Execution
- Description: PHPMailer before 6.5.0 on Windows allows remote code execution if lang_path is untrusted data and has a UNC pathname.
- Impact: Attackers can execute arbitrary code remotely on the server, potentially leading to full system compromise.
- Remediation: Update to version 6.5.0 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.1
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.02803
- Epss percentile: 0.86734
- Assignee: [email protected]
- Published at: 2021-06-16T18:15:09Z
- Age in days: 1987
- Modified at: 2026-06-17T03:56:06Z
- Patch available: yes
- References total: 3
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-34551
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-434 | Unrestricted Upload of File with Dangerous Type |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| phpmailer_project:phpmailer | < 6.5.0 | yes | nvd | /v1/products/phpmailer_project/phpmailer |
| fedoraproject:fedora | = 34, = 33 | no | nvd | /v1/products/fedoraproject/fedora |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| PHPMailer/PHPMailer | commit, releases, security_advisory | yes | /v1/repositories/PHPMailer/PHPMailer |
Index
- Repositories: 40
- Repositories high signal: 23
- Packages: 1
Exploitation
- Remote: yes
- Exposed hosts: 49161
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports