cve.bz

CVE-2016-10033 PHPMailer Command Injection Vulnerability

9.8 criticalKEVExploitEPSS 99.7%Fix available

Critical (9.8) in PHP PHPMailer. In CISA KEV since 2025-07-07. EPSS 99.7% estimated probability of exploitation activity in the next 30 days. Fixed in phpmailer/phpmailer 5.2.18.

On this page
The mailSend function in the isMail transport in PHPMailer before 5.2.18 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code via a \" (backslash double quote) in a crafted Sender property.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
99.7% (unchanged from 99.7% a week ago; 99.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2025-07-07, due 2025-07-28
CISA's assessment (SSVC)
Exploitation: active · Automatable: yes · Technical impact: total, assessed 2025-07-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-88 Improper Neutralization of Argument Delimiters in a Command (Argument Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2016-10033 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-10033?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-10033?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2016-10033 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
phpmailer_project:phpmailerbefore 5.2.18
wordpress:wordpressthrough 4.7
joomla:joomla!from 1.5.0 through 3.6.5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5f37-gxvh-23v6Packagistphpmailer/phpmailer>=5.0.0 <5.2.185.2.18

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7libphp-phpmailer5.1-1.2DLA-770-1
Debian8libphp-phpmailer5.2.9+dfsg-2+deb8u2DSA-3750-1
Debian12, 13, 14libphp-phpmailer5.2.14+dfsg-2.1DEBIAN-CVE-2016-10033
UbuntuPro:16.04:LTSlibphp-phpmailer5.2.14+dfsg-1ubuntu0.1~esm1UBUNTU-CVE-2016-10033 USN-5956-1
UbuntuPro:18.04:LTSlibphp-phpmailer5.2.14+dfsg-2.3+deb9u2ubuntu0.1~esm1USN-5956-1
UbuntuPro:20.04:LTSlibphp-phpmailer6.0.6-0.1ubuntu0.1~esm1USN-5956-1
UbuntuPro:22.04:LTSlibphp-phpmailer6.2.0-2ubuntu0.1~esm1USN-5956-1
Alpinev3.2, v3.3php-phpmailer5.2.4-r0ALPINE-CVE-2016-10033
Alpinev3.4php5-phpmailer5.2.0-r1ALPINE-CVE-2016-10033
Alpinev3.5php5-phpmailer5.2.4-r1ALPINE-CVE-2016-10033

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine.

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Nuclei template WordPress PHPMailer < 5.2.18 - Remote Code Execution
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Wordpress Host Header Injection (CVE-2016-10033) M2 sid 2024278
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Wordpress Host Header Injection (CVE-2016-10033) M3 sid 2024279
  • Emerging Threats Open ET EXPLOIT Possible CVE-2016-10033 PHPMailer RCE Attempt sid 2023686

Attack patterns (CAPEC)

  • CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads Likelihood: High · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-137 Parameter Injection Likelihood: Medium · Severity: Medium
  • CAPEC-174 Flash Parameter Injection Likelihood: High · Severity: Medium
  • CAPEC-460 HTTP Parameter Pollution (HPP) Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON