GHSA-f6p5-76fp-m248 URL Rewrite vulnerability in multiple zendframework components

Not scored Published

Attackers can spoof HTTP headers to bypass URL rewrite protections and request arbitrary internal content in Zend Framework components.

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

What is GHSA-f6p5-76fp-m248?

GHSA-f6p5-76fp-m248 is a server-side request forgery vulnerability in zendframework/zend-diactoros, published on 28 Apr 2022. 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-f6p5-76fp-m248?

6 open source packages ship an affected version, including zendframework/zend-diactoros, zendframework/zend-feed and zendframework/zend-http.

PackageAffectedFixed in
zendframework/zend-diactoros PackagistAll versions1.8.4
zendframework/zend-diactoros PackagistAll versions1.8.4
zendframework/zend-feed PackagistAll versions2.10.3
zendframework/zend-feed PackagistAll versions2.10.3
zendframework/zend-http PackagistAll versions2.8.1
zendframework/zend-http PackagistAll versions2.8.1

How do I fix GHSA-f6p5-76fp-m248?

Upgrade zendframework/zend-diactoros to 1.8.4 or later.

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

Is GHSA-f6p5-76fp-m248 being exploited?

There is no known exploitation of GHSA-f6p5-76fp-m248 in the wild and no public exploit code.

Sources

Is GHSA-f6p5-76fp-m248 in your software?

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

Check your SBOMs for free