Security mailing lists by PureSourceCode

CVE-2016-10045

CRITICAL 9.8CVSS 3.1

Remote code execution in PHPMailer

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.

Published
30 Dec 2016
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-77
Also known as
GHSA-4pc3-96mx-wwc8
Sources
NVDJSONOSV GHSA-4pc3-96mx-wwc8JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD phpmailer_project phpmailer
cpe:2.3:a:phpmailer_project:phpmailer:*:*:*:*:*:*:*:*
< 5.2.20 5.2.20
NVD wordpress wordpress
cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*
<= 4.7
NVD joomla joomla!
cpe:2.3:a:joomla:joomla\!:*:*:*:*:*:*:*:*
>= 1.5.0, <= 3.6.5
OSV Packagist phpmailer/phpmailer >= 5.0.0, < 5.2.20 5.2.20

References

History

  • 25 Nov 2026 20:19 UTC · NVD: first stored (published 30 Dec 2016)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 5 Mar 2020)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.