patchminder
Proof of concept · Exploit-DB CVE-2016-10034

Remote code executionin the zendframework/zend-mail package.

Published 30 Dec 2016 · Updated 6 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (Exploit-DB).

Attack code is public
Severity
Critical 9.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.0 · no login needed
Attack likelihood
High
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 39.3% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 2.4.11, 2.7.2
In plain words

The setFrom function in the Sendmail adapter in the zend-mail component before 2.4.11, 2.5.x, 2.6.x, and 2.7.x before 2.7.2, and Zend Framework before 2.4.11 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 e-mail address.

What to do now
  • Upgrade zendframework/zend-mail (Packagist) to 2.4.11, 2.7.2 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
n/a
Not confirmed
Not confirmed
CVE record
zendframework/zend-mail (Packagist)
before 2.4.11
2.4.11
GitHub advisory
zendframework/zend-mail (Packagist)
2.5 to 2.5.2
Not confirmed
GitHub advisory
zendframework/zend-mail (Packagist)
2.6 to 2.6.2
Not confirmed
GitHub advisory
zendframework/zend-mail (Packagist)
2.7 to before 2.7.2
2.7.2
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 23 Dec 2016
    CVE ID reserved by mitre.
  2. 30 Dec 2016
    Published in the CVE List.
  3. 17 Oct 2017
    First public proof of concept on GitHub.
  4. 6 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (Exploit-DB).

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
3 entries
GitHub proof of concepts
1 repository
Exploit-DBEDB-ID 40986web application exploit for php, published 2 Jan 2017
Exploit-DBEDB-ID 42221web application exploit for php, published 21 Jun 2017
Exploit-DBEDB-ID 40979web application exploit for php, published 30 Dec 2016
GitHubno warning signs foundheikipikker/exploit-CVE-2016-100340 stars · created 17 Oct 2017PHPMailer < 5.2.18 Remote Code Execution
Referencewww.exploit-db.comnamed as exploit in the CVE record
Referencewww.exploit-db.comnamed as exploit in the CVE record
Referencewww.exploit-db.comnamed as exploit in the CVE record

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

References
Cite this page

Patchminder. CVE-2016-10034: Remote code execution in the zendframework/zend-mail package. https://patchminder.com/cve/cve-2016-10034/ (accessed 5 December 2026).