Live threats

All CVEs / Phpmailer Project

CVE-2018-19296Phpmailer Project Phpmailer

High 8.8 No auth needed

Priority
68
CVSS 3.1
8.8
EPSS
2.2%
probability of exploitation in 30 days · percentile 84
Auth required
No
Published
Nov 16, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-502, CWE-1321
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

PHPMailer before 5.2.27 and 6.x before 6.0.6 is vulnerable to an object injection attack.

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 ≥ 5.0.0 < 5.2.27 5.2.27 composer require "phpmailer/phpmailer:^5.2.27"
Packagist phpmailer/phpmailer ≥ 6.0.0 < 6.0.6 6.0.6 composer require "phpmailer/phpmailer:^6.0.6"

Per OSV / GitHub Advisories (GHSA-7w4p-72j7-v7c2). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
phpmailer_projectphpmailer< 5.2.27
phpmailer_projectphpmailer≥ 6.0.0 < 6.0.6
debiandebian_linux8.0
debiandebian_linux9.0
fedoraprojectfedora33
fedoraprojectfedora34
wordpresswordpress≥ 3.7 ≤ 5.7

Official sources

References

Links published by the sources. Open them with care.