VDB
Sign up
CRITICAL9.8

GHSA-r9mw-gwx9-v3h5

zend-mail remote code execution via Sendmail adapter

Quick fix

GHSA-r9mw-gwx9-v3h5 — zendframework/zend-mail: upgrade to the fixed version with the command below.

composer require zendframework/zend-mail:^2.4.11

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/zendframework/zend-mail
Introduced in: 0Fixed in: 2.4.11
Fixcomposer require zendframework/zend-mail:^2.4.11
Packagist/zendframework/zend-mail
Introduced in: 2.5

No fixed version published yet for zendframework/zend-mail (composer). Pin to a known-safe version or switch to an alternative.

Packagist/zendframework/zend-mail
Introduced in: 2.6

No fixed version published yet for zendframework/zend-mail (composer). Pin to a known-safe version or switch to an alternative.

Packagist/zendframework/zend-mail
Introduced in: 2.7Fixed in: 2.7.2
Fixcomposer require zendframework/zend-mail:^2.7.2

References