GHSA-f6p5-76fp-m248: Zendframework/zend diactoros URL Rewrite Vulnerability Vulnerability

HIGH
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-f6p5-76fp-m248
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Zendframework/zend diactoros
Package Ecosystem Packagist
Published Date
Last Updated

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.

zendframework/zend-diactoros fixed: 1.8.4
Upgrade zendframework/zend-diactoros to 1.8.4
zendframework/zend-feed fixed: 2.10.3
Upgrade zendframework/zend-feed to 2.10.3
zendframework/zend-http fixed: 2.8.1
Upgrade zendframework/zend-http to 2.8.1
Verify Direct and Transitive Dependencies

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

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.

GHSA-f6p5-76fp-m248 Affected Zendframework/zend diactoros Versions

3 component(s)
Fixed Versions:
1.8.42.10.32.8.1
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?
GHSA-f6p5-76fp-m248 is a security vulnerability in Zendframework/zend diactoros involving URL Rewrite vulnerability in multiple zendframework components under General Security Weakness.
Which Zendframework/zend diactoros versions are affected?
Affected versions include releases prior to 1.8.4, 2.10.3, 2.8.1 across affected packages: zendframework/zend-diactoros, zendframework/zend-feed, zendframework/zend-http.
What version fixes GHSA-f6p5-76fp-m248?
Upgrading to 1.8.4, 2.10.3, 2.8.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is zendframework/zend-diactoros affected?
Yes, zendframework/zend-diactoros is affected in releases prior to 1.8.4. Upgrade your dependency to 1.8.4 or later.
Is zendframework/zend-feed affected?
Yes, zendframework/zend-feed is affected in releases prior to 2.10.3. Upgrade your dependency to 2.10.3 or later.
What CWE is associated with GHSA-f6p5-76fp-m248?
GHSA-f6p5-76fp-m248 is classified under General Security Weakness.
How can I check Packagist dependencies for GHSA-f6p5-76fp-m248?
Run the dependency tree command: 'inspect dependencies for zendframework/zend-diactoros'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}