CVE-2016-10045

Description

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 code by leveraging improper interaction between the escapeshellarg function and internal escaping performed in the mail function in PHP. NOTE: this vulnerability exists because of an incorrect fix for CVE-2016-10033.

Severity
CRITICAL
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
97.738%
chance of exploitation in the next 30 days
higher than 99.9% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 8
Metasploit modules: 1
Nuclei templates: 0
Exploit-DB: 3

Weakness

Timeline

  1. 2016-12-27First Exploit-DB entry (EDB-ID 40969)3 days before publication
  2. 2016-12-30Published by the CNA19:00 UTC
  3. 2020-03-05GitHub advisory published (GHSA-4pc3-96mx-wwc8)1161 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

Exploit-DBTypePlatformPublishedEDB-verified
EDB-ID 42221webappsphp2017-06-21no
EDB-ID 40986webappsphp2017-01-02no
EDB-ID 40969webappsphp2016-12-27no

GitHub advisory GHSA-4pc3-96mx-wwc8, affected packages:

PackageVulnerable versionsFixed in
Packagist phpmailer/phpmailerfrom 5.0.0 before 5.2.205.2.20

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
phpmailer_project phpmailerbefore 5.2.20fixed in 5.2.205.2.20
joomla joomla!from 1.5.0 through 3.6.5no fix listednot listed
wordpress wordpressthrough 4.7no fix listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources