CVE-2016-10045Phpmailer Project Phpmailer
Critical 9.8 No auth neededHigh EPSS
Follow: this CVE · Phpmailer Project · Phpmailer Project Phpmailer We alert you by email or Slack (account required).
- Priority
- 84
- CVSS 3.1
- 9.8
- EPSS
- 97.7% probability of exploitation in 30 days · percentile 100
- Auth required
- No
- Published
- Dec 30, 2016
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-77
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Phpmailer.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | phpmailer/phpmailer |
≥ 5.0.0 < 5.2.20 |
5.2.20 |
composer require "phpmailer/phpmailer:^5.2.20" |
Per OSV / GitHub Advisories (GHSA-4pc3-96mx-wwc8). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| phpmailer_project | phpmailer | < 5.2.20 |
| wordpress | wordpress | ≤ 4.7 |
| joomla | joomla! | ≥ 1.5.0 ≤ 3.6.5 |
Official sources
References
Links published by the sources. Open them with care.
- openwall.com Mailing List Patch
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- seclists.org Mailing List Patch Third Party Advisory
- www.rapid7.com Exploit Third Party Advisory
- www.securityfocus.com Third Party Advisory VDB Entry
- www.securityfocus.com Exploit Third Party Advisory VDB Entry
- www.securitytracker.com Third Party Advisory VDB Entry
- developer.joomla.org Third Party Advisory
- github.com Patch Vendor Advisory
- github.com Patch Vendor Advisory
- legalhackers.com Exploit Patch Third Party Advisory
- www.exploit-db.com Exploit Third Party Advisory VDB Entry
- www.exploit-db.com Third Party Advisory VDB Entry
- www.exploit-db.com Third Party Advisory VDB Entry