Zend-HTTP URL Rewrite vulnerability in zendframework/zend-http

zendframework/zend-http Updated 02 Oct 2025

Summary

07/06/2024
HIGH
Yes i
High
7.5

GHSA-cg8w-5jrc-675g: Zend-HTTP URL Rewrite vulnerability. Affects zendframework/zend-http versions >= 1.0.0, < 2.8.1. Fixed in 2.8.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

zendframework/zend-http is a package available on Packagist that provides functionality for handling HTTP requests and responses in PHP applications. It is commonly used in Zend Framework MVC projects. This package is vulnerable to a URL rewrite exploit that affects the marshaling of request URIs. The vulnerability arises from the package's logic that inspects HTTP request headers specific to a server-side URL rewrite mechanism. Even on systems not running the specific URL rewriting mechanism, the logic can be triggered by emulating the headers, allowing malicious clients or proxies to request arbitrary content.

Vulnerability Detail

The vulnerability in zendframework/zend-http allows for a potential URL rewrite exploit. By manipulating HTTP request headers, an attacker can bypass the intended behavior of the package and request arbitrary content. This can lead to unauthorized access, data leakage, or other security breaches. The vulnerability has a CVSS score of 7.5, indicating a high severity level.

How To Fix

Minimum fixed version

2.8.1

This is the first release that contains the fix.

composer require zendframework/zend-http:2.8.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to update the package to the fixed version as soon as possible.

Conclusion

The zendframework/zend-http package is vulnerable to a URL rewrite exploit that allows attackers to manipulate HTTP request headers and request arbitrary content. To mitigate this vulnerability, it is crucial to update the package to version 2.8.1 or later. There are no known workarounds, and it is recommended to apply the fix as soon as possible.

See every vulnerability recorded for zendframework/zend-http →

Share this vulnerability

FAQ

The vulnerability allows attackers to manipulate HTTP request headers and request arbitrary content, potentially leading to unauthorized access or data leakage.

Versions 1.0.0 to 2.8.0 of zendframework/zend-http are affected by this vulnerability.

There are no known public exploits for this vulnerability at the time of writing.

Yes, this vulnerability can be exploited remotely by sending manipulated HTTP request headers.

Yes, the CVSS score for this vulnerability is 7.5, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for zendframework/zend-http.

How To Fix

Minimum fixed version

2.8.1

This is the first release that contains the fix.

composer require zendframework/zend-http:2.8.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback