CVE-2017-15806

HIGH

Zeta Components Mail < 1.8.2 - Remote Code Execution via Crafted Email Address in Return Path

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2017-15806. PoCs published by MalwareBenchmark.

AI-analyzed exploit summary The exploit leverages improper sanitization of the return path in the ezcMailMtaTransport class, allowing command injection via the sendmail -X flag to write arbitrary files to the webroot. This results in remote code execution if the attacker can access the written file.

Description

The send function in the ezcMailMtaTransport class in Zeta Components Mail before 1.8.2 does not properly restrict the set of characters used in the ezcMail returnPath property, which might allow remote attackers to execute arbitrary code via a crafted email address, as demonstrated by one containing "-X/path/to/wwwroot/file.php."

Exploits (1)

exploitdb WORKING POC VERIFIED
by MalwareBenchmark · textwebappsphp
https://www.exploit-db.com/exploits/43155

The exploit leverages improper sanitization of the return path in the ezcMailMtaTransport class, allowing command injection via the sendmail -X flag to write arbitrary files to the webroot. This results in remote code execution if the attacker can access the written file.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Zeta Components Mail <= 1.8.1
No auth needed
Prerequisites: Use of ezcMailMtaTransport · Sendmail binary with -X flag support · Writable webroot by the webserver user · Unsanitized input for returnPath
devstral-2 · analyzed Feb 18, 2026 Full analysis →

References (6)

Core 6
Core References
Issue Tracking, Third Party Advisory, VDB Entry exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/43155/
Issue Tracking, Third Party Advisory x_refsource_confirm
https://github.com/zetacomponents/Mail/issues/58
Issue Tracking, Release Notes, Third Party Advisory x_refsource_confirm
https://github.com/zetacomponents/Mail/releases/tag/1.8.2
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/101866

Scores

CVSS v3 8.1
EPSS 0.1646
EPSS Percentile 95.1%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-94
Status published
Products (2)
zetacomponents/mail < 1.8.2
zetacomponents/mail 0 - 1.8.2Packagist
Published Nov 15, 2017
Tracked Since Feb 18, 2026