GHSA-f6p5-76fp-m248: Zendframework/zend diactoros URL Rewrite Vulnerability Vulnerability
HIGHGHSA-f6p5-76fp-m248 is a HIGH url rewrite vulnerability vulnerability (General Security Weakness) affecting Zendframework/zend diactoros libraries in the Packagist ecosystem. The issue involves url rewrite vulnerability in multiple zendframework components. Remediation is available by upgrading affected packages to version 1.8.4, 2.10.3, 2.8.1.
GHSA-f6p5-76fp-m248 at a Glance
How to Fix GHSA-f6p5-76fp-m248
To remediate this vulnerability, upgrade all affected Zendframework/zend diactoros dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade zendframework/zend-diactoros to 1.8.4
Upgrade zendframework/zend-feed to 2.10.3
Upgrade zendframework/zend-http to 2.8.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for zendframework/zend-diactoros
How to Check if You Are Affected
To determine whether your application is affected by GHSA-f6p5-76fp-m248, inspect your project dependencies for Zendframework/zend diactoros:
inspect dependencies for zendframework/zend-diactoros
Analyze the terminal output to locate any version of Zendframework/zend diactoros in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.4), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Zendframework/zend diactoros, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-f6p5-76fp-m248 Affected Zendframework/zend diactoros Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
zendframework/zend-diactoros
|
Packagist |
< 1.8.4
|
1.8.4
|
|
zendframework/zend-feed
|
Packagist |
< 2.10.3
|
2.10.3
|
|
zendframework/zend-http
|
Packagist |
< 2.8.1
|
2.8.1
|
References
Frequently Asked Questions
What is GHSA-f6p5-76fp-m248?
Which Zendframework/zend diactoros versions are affected?
What version fixes GHSA-f6p5-76fp-m248?
Is zendframework/zend-diactoros affected?
Is zendframework/zend-feed affected?
What CWE is associated with GHSA-f6p5-76fp-m248?
How can I check Packagist dependencies for GHSA-f6p5-76fp-m248?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f6p5-76fp-m248",
"modified" : "2022-04-28T21:09:54Z",
"published" : "2022-04-28T21:09:54Z",
"aliases" : [ ],
"summary" : "URL Rewrite vulnerability in multiple zendframework components",
"details" : "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.\n\nWhen 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.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "zendframework/zend-diactoros"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.8.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "zendframework/zend-feed"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "zendframework/zend-http"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.8.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zend-diactoros/ZF2018-01.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zend-feed/ZF2018-01.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zend-http/ZF2018-01.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-04-28T21:09:54Z",
"nvd_published_at" : null
}
}