GHSA-gff2-p6vm-3p8g ZendFramework potential remote code execution in zend-mail via Sendmail adapter

Not scored Published

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

When using the zend-mail component to send email via the 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.

PackageAffectedFixed in
zendframework/zendframework PackagistFrom 2.0.02.4.11
zendframework/zendframework PackagistFrom 2.0.02.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.

Sources

Is GHSA-gff2-p6vm-3p8g in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free