ZF2016-04: Potential remote code execution in zend-mail via Sendmail adapter

unknown Affects zendframework/zend-mail, zendframework/zendframework. Feed 2026.11.23.2, updated 2026-11-23.

Potential remote code execution in zend-mail via Sendmail adapter

Package
zendframework/zend-mail Composer
Affected versions
>=2.0.0 and <2.1.0 or >=2.1.0 and <2.2.0 or >=2.2.0 and <2.3.0 or >=2.3.0 and <2.4.0 or >=2.4.0 and <2.4.11 or >=2.5.0 and <2.6.0 or >=2.6.0 and <2.7.0 or >=2.7.0 and <2.7.2
Fixed in
2.4.11, 2.7.2
Severity
unknown
Exploitation
not on CISA KEV
Source
friendsofphp

References

Potential remote code execution in zend-mail via Sendmail adapter

Package
zendframework/zendframework Composer
Affected versions
>=2.0.0 and <2.1.0 or >=2.1.0 and <2.2.0 or >=2.2.0 and <2.3.0 or >=2.3.0 and <2.4.0 or >=2.4.0 and <2.4.11
Fixed in
2.4.11
Severity
unknown
Exploitation
not on CISA KEV
Source
friendsofphp

References

NVD recordzendframework/zend-mail advisorieszendframework/zendframework advisories

Quick answers

Is ZF2016-04 being actively exploited?

It is not on CISA's Known Exploited Vulnerabilities list today.

Which version fixes ZF2016-04?

zendframework/zend-mail: 2.4.11, 2.7.2; zendframework/zendframework: 2.4.11.

How do I check whether I am affected?

Run `phpwarden deps composer.lock`. phpwarden checks the exact version you have installed against this advisory.

Am I affected?

Find out in one command. phpwarden checks your composer.lock against this advisory and 21,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden deps composer.lock

# or, without Composer
pipx install phpwarden   &&   phpwarden deps composer.lock

Or keep it checked automatically: GitHub Action · pre-commit hook · GitLab CI · Laravel artisan command

Install docs   How findings are ranked

Related advisories