GHSA-cg8w-5jrc-675g: Zendframework/zend http Zend-HTTP URL Rewrite Vulnerability Vulnerability
HIGHGHSA-cg8w-5jrc-675g is a HIGH (CVSS 7.5) zend-http url rewrite vulnerability vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Zendframework/zend http libraries in the Packagist ecosystem. The issue involves zend-http url rewrite vulnerability. Remediation is available by upgrading affected packages to version 2.8.1.
GHSA-cg8w-5jrc-675g at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix GHSA-cg8w-5jrc-675g
To remediate this vulnerability, upgrade all affected Zendframework/zend http 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-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-http
How to Check if You Are Affected
To determine whether your application is affected by GHSA-cg8w-5jrc-675g, inspect your project dependencies for Zendframework/zend http:
inspect dependencies for zendframework/zend-http
Analyze the terminal output to locate any version of Zendframework/zend http in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.8.1), 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 CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Zendframework/zend http, 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-cg8w-5jrc-675g Affected Zendframework/zend http Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
zendframework/zend-http
|
Packagist |
≥ 1.0.0
< 2.8.1
|
2.8.1
|
References
Frequently Asked Questions
What is GHSA-cg8w-5jrc-675g?
Which Zendframework/zend http versions are affected?
What version fixes GHSA-cg8w-5jrc-675g?
Is zendframework/zend-http affected?
What is the CVSS score of GHSA-cg8w-5jrc-675g?
What CWE is associated with GHSA-cg8w-5jrc-675g?
How can I check Packagist dependencies for GHSA-cg8w-5jrc-675g?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cg8w-5jrc-675g",
"modified" : "2024-06-07T21:52:12Z",
"published" : "2024-06-07T21:52:12Z",
"aliases" : [ ],
"summary" : "Zend-HTTP URL Rewrite vulnerability",
"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" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "zendframework/zend-http"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "2.8.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/zendframework/zend-http/commit/44197164a270259116162a442f639085ea24094a"
}, {
"type" : "WEB",
"url" : "https://github.com/zendframework/zend-http/commit/5234f4a9e8137b731ab95d6a17879d4eb8fb9e39"
}, {
"type" : "WEB",
"url" : "https://framework.zend.com/security/advisory/ZF2018-01"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zend-http/ZF2018-01.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/zendframework/zend-http"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-06-07T21:52:12Z",
"nvd_published_at" : null
}
}