Potential Proxy Injection Vulnerabilities in ZendFramework

zendframework/zendframework Updated 02 Oct 2025

Summary

07/06/2024
MODERATE
Yes i
Moderate
5.9

GHSA-mg7h-9qfx-4r83: ZendFramework Potential Proxy Injection Vulnerabilities. Affects zendframework/zendframework versions >= 2.0.0, < 2.0.5. Fixed in 2.0.5. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

ZendFramework is a popular open-source framework for developing web applications and services in PHP. It provides a robust set of components and tools that facilitate the creation of secure and maintainable applications. However, certain components within ZendFramework, specifically Zend\Session\Validator\RemoteAddr and Zend\View\Helper\ServerUrl, have been found to improperly handle HTTP headers when the application is deployed behind a proxy. This oversight can lead to vulnerabilities that may allow attackers to spoof proxied IP addresses or host names, compromising the integrity of the application.

Vulnerability Detail

The vulnerability arises from the incorrect parsing of HTTP headers in the Zend\Session\Validator\RemoteAddr and Zend\View\Helper\ServerUrl components. When a client is behind a proxy server, the detection of the proxy URL is flawed, potentially leading to inaccurate results in subsequent lookups. This could allow an attacker to manipulate the perceived IP address of the client, leading to unauthorized access or other malicious activities. Additionally, the ServerUrl helper generates URLs based on the proxy host without considering the actual server configuration, which can further exacerbate security issues.

How To Fix

Minimum fixed version

2.0.5

This is the first release that contains the fix.

composer require zendframework/zendframework:2.0.5

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

Workaround

As a temporary workaround, developers can implement custom logic to validate and sanitize the incoming HTTP headers before processing them. This may involve checking the X-Forwarded-For header and ensuring that it contains valid IP addresses. However, this is not a substitute for applying the official patch.

Conclusion

The identified proxy injection vulnerabilities in ZendFramework highlight the importance of proper handling of HTTP headers, especially in applications deployed behind proxies. By updating to the patched version and implementing recommended workarounds, developers can significantly enhance the security of their applications.

See every vulnerability recorded for zendframework/zendframework →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 5.9, indicating a moderate level of risk.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.

If exploited, this vulnerability could allow attackers to spoof IP addresses, potentially leading to unauthorized access, data breaches, or other malicious activities.

Yes, implementing custom validation and sanitization of HTTP headers can help mitigate the risk until you can apply the official patch.

You can find more information about ZendFramework on its official website or its GitHub repository.

Related vulnerabilities

Recent vulnerabilities recorded for zendframework/zendframework.

How To Fix

Minimum fixed version

2.0.5

This is the first release that contains the fix.

composer require zendframework/zendframework:2.0.5

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