Object injection attack in PHPMailer - CVE-2018-19296

 

Object injection attack in PHPMailer - CVE-2018-19296

Published: December 7, 2018 / Updated: November 6, 2026


Vulnerability identifier: #VU16334
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-19296
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to object injection attack. A remote unauthenticated attacker can send a specially crafted request, conduct object injection attack and execute arbitrary code with elevated privileges.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

PHPMailer
Debian Linux
Fedora
Ubuntu
Nagios XI
libphp-phpmailer (Debian package)
libphp-phpmailer (Ubuntu package)
php-PHPMailer
php-phpmailer6

How to mitigate CVE-2018-19296

The vulnerability has been fixed in the versions 5.2.27, 6.0.6.

PHPMailer - update to 6.0.6
Nagios XI - update to 5.6.3
libphp-phpmailer (Debian package) - addressed in versions 5.2.9+dfsg-2+deb8u4, 5.2.14+dfsg-2.3+deb9u1
libphp-phpmailer (Ubuntu package) - update to Ubuntu Pro
php-PHPMailer - addressed in versions 5.2.27-1.el6, 5.2.27-1.el7, 5.2.27-1.fc27, 5.2.27-1.fc28, 5.2.27-1.fc29
php-phpmailer6 - addressed in versions 6.0.6-1.fc27, 6.0.6-1.fc28, 6.0.6-1.fc29, 6.4.1-1.fc33, 6.4.1-1.fc34

External References

Related Security Bulletins