SecurityContext

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

IdName
CWE-434Unrestricted Upload of File with Dangerous Type

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.mdIssue Tracking, Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3YRMWGA4VTMXFB22KICMB7YMFZNFV3EJ/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJYSOFCUBS67J3TKR74SD3C454N7VTYM/

Products

ProductAffectedPlatform boundSourcesUrl
phpmailer_project:phpmailer< 6.5.0yesnvd/v1/products/phpmailer_project/phpmailer
fedoraproject:fedora= 34, = 33nonvd/v1/products/fedoraproject/fedora

Projects

RepositoryLink kindsIndexedUrl
PHPMailer/PHPMailercommit, releases, security_advisoryyes/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