CVE-2016-10045

critical
Published 2016-12-30 ยท Modified 2025-04-14
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
10.0

Description

Remote code execution in PHPMailer

Predictions

Exploit likelihood
97%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-40969 webapps php
Dawid Golunski ยท 2016-12-27

PHPMailer < 5.2.20 - Remote Code Execution

Source code queued for fetch โ€” refresh in a moment.
EDB-40986 webapps php
Dawid Golunski ยท 2017-01-02

PHPMailer < 5.2.20 / SwiftMailer < 5.4.5-DEV / Zend Framework / zend-mail < 2.4.11 - 'AIO' 'PwnScriptum' Remote Code Execution

Source code queued for fetch โ€” refresh in a moment.
EDB-42221 webapps php
phackt_ul ยท 2017-06-21

PHPMailer < 5.2.20 with Exim MTA - Remote Code Execution

Source code queued for fetch โ€” refresh in a moment.

Metasploit modules

PHPMailer Sendmail Argument Injection
Source code queued for fetch โ€” refresh in a moment.

OS impact

arch Arch Fixed 1 release
VersionStatusFixed in
โ€” Fixed 4.7.1-1
debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 0
sid Fixed 0
forky Fixed 0
bullseye Fixed 0
bookworm Fixed 0

Package impact

EcosystemPackageVulnerableFixed
php Packagistphpmailer/phpmailer>=5.0.0,<5.2.205.2.20

Application impact

VendorProductVersionsFixed
phpmailer_projectphpmailer{"endExcluding":"5.2.20"}5.2.20
wordpress wordpresswordpress{"endIncluding":"4.7"}
joomla joomlajoomla\!{"startIncluding":"1.5.0","endIncluding":"3.6.5"}

References

CWEs

CWE-77

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.