CVE-2016-10033KEV · OVERDUE

PHPMailer Command Injection Vulnerability

Critical · published December 30, 2016

Patch now

Confirmed exploited, and the score agrees

CVSS calls it critical at 9.8. It is confirmed in active exploitation. It sits in the 100.0th percentile for exploit probability.

451
days past CISA
deadline
CVSS v3.1
9.8
EPSS
100%
Percentile
100.0
In the wild
Confirmed
What it is

🚨 A sneaky double quote in the Sender property could let attackers execute arbitrary code! Just one glitch in PHPMailer's mailSend function and you've got a remote code execution waiting to happen. 🔥 Think of it like a waiter who misreads your special request and accidentally serves a dish that contains hidden allergens — the next thing you know, you've got a critical situation on your hands! This vulnerability allows attackers to slip extra parameters right into the mail command, just like slipping an unexpected ingredient into your meal. An attacker could exploit this vulnerability to execute any code on your server, leading to full control of your system. Imagine the chaos: unauthorized data access, compromised databases, and potentially devastating attacks on your entire application. This could have catastrophic consequences for your users and your reputation!

Put simply

Think of it like a waiter who misreads your special request and accidentally serves a dish that contains hidden allergens — the next thing you know, you've got a critical situation on your hands! This vulnerability allows attackers to slip extra parameters right into the mail command, just like slipping an unexpected ingredient into your meal. This CVE arises in PHPMailer prior to version 5.2.18, where the mailSend function in the isMail transport fails to sanitize inputs adequately. By crafting a specific Sender property with a backslash double quote, an attacker can inject malicious code into the mail command, facilitating remote code execution.

What to do

An attacker could exploit this vulnerability to execute any code on your server, leading to full control of your system. Imagine the chaos: unauthorized data access, compromised databases, and potentially devastating attacks on your entire application. This could have catastrophic consequences for your users and your reputation! To safeguard your application, immediately upgrade PHPMailer to version 5.2.18 or later. Also, review your code for instances of mailSend usage and implement additional input validation to ensure such vulnerabilities cannot be exploited in the future. Don't hesitate to conduct a thorough security audit! You've got this! Follow these steps, and you'll be on your way to fortifying your application against attacks like this in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.99714 · 100.0th percentile
Published
2016-12-30T19:00Z
KEV added
2025-07-07 · due 2025-07-28
EPSS history
Timeline
  • 07 JUL 00:00Z
    Added to CISA KEV — remediate by Jul 28
    kev
  • 30 DEC 19:00Z
    The mailSend function in the isMail transport in PHPMailer before 5.2.18 might allow remote attackers to pass extra parameters to the mail command and…
    cvelistv5