Live threats

All CVEs / Phpmailer Project

CVE-2021-34551Phpmailer Project Phpmailer

High 8.1 No auth needed

Priority
64
CVSS 3.1
8.1
EPSS
2.8%
probability of exploitation in 30 days · percentile 87
Auth required
No
Published
Jun 16, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-434
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

PHPMailer before 6.5.0 on Windows allows remote code execution if lang_path is untrusted data and has a UNC pathname.

Original NVD text.

What to do

  1. Apply the vendor's security update for Phpmailer.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist phpmailer/phpmailer < 6.5.0 6.5.0 composer require "phpmailer/phpmailer:^6.5.0"

Per OSV / GitHub Advisories (GHSA-7q44-r25x-wm4q). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
phpmailer_projectphpmailer< 6.5.0
fedoraprojectfedora33
fedoraprojectfedora34

Official sources

References

Links published by the sources. Open them with care.