CVE-2016-10045

The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary…

published December 30, 2016

Patch now

High probability of exploitation

NVD has not assigned a CVSS score to this record. It sits in the 99.9th percentile for exploit probability.

CVSS
—
EPSS
98%
Percentile
99.9
In the wild
Unconfirmed
What it is

⚠️ A sneaky little parameter trick could let attackers run arbitrary commands! With PHPMailer's isMail transport before 5.2.20, mismanaged arguments could lead to some serious chaos. 🔥 Think of it like a restaurant where the chef mistakenly cooks every dish based on an order slip that includes extra notes from customers — in this case, those notes can put anything on the menu! If exploited, an attacker could execute arbitrary code on the server, leading to unauthorized access and potentially devastating data breaches. This vulnerability can turn a trusted email service into a launchpad for malicious actions, putting your application and its users at risk.

Put simply

Think of it like a restaurant where the chef mistakenly cooks every dish based on an order slip that includes extra notes from customers — in this case, those notes can put anything on the menu! This vulnerability arises from improper handling between the escapeshellarg function and the mail function in PHP, enabling attackers to inject commands through extra parameters passed to the mail command.

What to do

If exploited, an attacker could execute arbitrary code on the server, leading to unauthorized access and potentially devastating data breaches. This vulnerability can turn a trusted email service into a launchpad for malicious actions, putting your application and its users at risk. Update PHPMailer to version 5.2.20 or later to fix this vulnerability. Additionally, closely monitor and validate input parameters to the mail function to prevent similar issues. Don't forget to audit your code regularly! You've got this! By taking action now, you'll ensure your PHPMailer is secure and ready to handle emails without any sneaky surprises. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.97738 · 99.9th percentile
Published
2016-12-30T19:00Z
EPSS history
Timeline
  • 30 DEC 19:00Z
    The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary…
    cvelistv5