CVE-2017-15806: Zeta Components Mail Arbitrary code execution via a crafted email address

zetacomponents/mail Updated 02 Oct 2025

Summary

17/05/2022
Yes i
High
8.1

CVE-2017-15806: Zeta Components Mail Arbitrary code execution via a crafted email address. Affects zetacomponents/mail versions < 1.8.2. Fixed in 1.8.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Zeta Components Mail is a package available on Packagist that provides functionality for sending and receiving emails. It is widely used in various PHP applications. The package includes the ezcMailMtaTransport class, which is responsible for sending emails. However, prior to version 1.8.2, there was a vulnerability in the send function of this class that allowed remote attackers to execute arbitrary code via a crafted email address.

Vulnerability Detail

The vulnerability in Zeta Components Mail arises from the improper restriction of characters used in the ezcMail returnPath property. This allows an attacker to inject arbitrary code into the email address, leading to potential code execution when the email is processed. An attacker could exploit this vulnerability by crafting an email address containing malicious code, such as "-X/path/to/wwwroot/file.php." When the email is processed, the malicious code would be executed, potentially leading to unauthorized access or other malicious activities.

How To Fix

Minimum fixed version

1.8.2

This is the first release that contains the fix.

composer require zetacomponents/mail:1.8.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. The recommended approach is to update the package to the latest version.

Conclusion

The vulnerability in Zeta Components Mail allows remote attackers to execute arbitrary code by injecting it into a crafted email address. To mitigate this vulnerability, it is crucial to update the package to version 1.8.2 or later. This will ensure that the necessary restrictions are in place to prevent code injection. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for zetacomponents/mail →

Share this vulnerability

FAQ

Zeta Components Mail is a package available on Packagist that provides functionality for sending and receiving emails in PHP applications.

This vulnerability allows remote attackers to execute arbitrary code by injecting it into a crafted email address. This could lead to unauthorized access, data breaches, or other malicious activities.

To fix this vulnerability, update Zeta Components Mail to version 1.8.2 or later.

There is no specific workaround mentioned for this vulnerability. Updating the package to the latest version is the recommended approach.

For more information about this vulnerability, you can refer to the CVE-2017-15806 advisory or the GitHub advisory database.

How To Fix

Minimum fixed version

1.8.2

This is the first release that contains the fix.

composer require zetacomponents/mail:1.8.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback