GHSA-gff2-p6vm-3p8g ZendFramework potential remote code execution in zend-mail via Sendmail adapter
Attackers can execute arbitrary commands on the server by injecting parameters into the sendmail program via unsanitized email addresses.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-gff2-p6vm-3p8g?
GHSA-gff2-p6vm-3p8g is a command injection vulnerability in zendframework/zendframework, published on 7 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Zend\Mail\Transport\Sendmail transport, a malicious user may be able to inject arbitrary parameters to the system sendmail program. The attack is performed by providing additional quote characters within an address; when unsanitized, they can be interpreted as additional command line arguments, leading to the vulnerability.Which versions are affected by GHSA-gff2-p6vm-3p8g?
2 open source packages ship an affected version, including zendframework/zendframework.
| Package | Affected | Fixed in |
|---|---|---|
zendframework/zendframework Packagist | From 2.0.0 | 2.4.11 |
zendframework/zendframework Packagist | From 2.0.0 | 2.4.11 |
How do I fix GHSA-gff2-p6vm-3p8g?
Upgrade zendframework/zendframework to 2.4.11 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is GHSA-gff2-p6vm-3p8g being exploited?
There is no known exploitation of GHSA-gff2-p6vm-3p8g in the wild and no public exploit code.