GHSA-fh7r-58q4-6387 Zendframework URL Rewrite vulnerability

Not scored Published

Attackers can spoof URL rewrite headers to access arbitrary internal content in PHP applications using affected Zend libraries.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-fh7r-58q4-6387?

GHSA-fh7r-58q4-6387 is a server-side request forgery 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-diactoros (and, by extension, Expressive), zend-http (and, by extension, Zend Framework MVC projects), and zend-feed (specifically, its PubSubHubbub sub-component) each contain a potential URL rewrite exploit. In each case, marshaling a request URI includes logic that introspects HTTP request headers that are specific to a given server-side URL rewrite mechanism.

When these headers are present on systems not running the specific URL rewriting mechanism, the logic would still trigger, allowing a malicious client or proxy to emulate the headers to request arbitrary content.

Which versions are affected by GHSA-fh7r-58q4-6387?

2 open source packages ship an affected version, including zendframework/zendframework.

PackageAffectedFixed in
zendframework/zendframework PackagistAll versions2.5.0
zendframework/zendframework PackagistAll versions2.5.0

How do I fix GHSA-fh7r-58q4-6387?

Upgrade zendframework/zendframework to 2.5.0 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is GHSA-fh7r-58q4-6387 being exploited?

There is no known exploitation of GHSA-fh7r-58q4-6387 in the wild and no public exploit code.

Sources

Is GHSA-fh7r-58q4-6387 in your software?

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

Check your SBOMs for free