Zendframework Remote Address Spoofing Vector in `Zend\Http\PhpEnvironment\RemoteAddress`
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-601.
Summary
The `Zend\Http\PhpEnvironment\RemoteAddress` class provides features around detecting the internet protocol (IP) address for an incoming proxied request via the X-Forwarded-For header, taking into account a provided list of trusted proxy server IPs. Prior to 2.2.5, the class was not taking into account whether or not the IP address contained in PHP's `$_SERVER['REMOTE_ADDR']` was in the trusted proxy server list. The IETF draft specification indicates that if `$_SERVER['REMOTE_ADDR']` is not a trusted proxy, it must be considered the originating IP address, and the value of X-Forwarded-For must be disregarded.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | zendframework/zendframework (Packagist) | 2.2.0 to before 2.2.5 | 2.2.5 | Patch available | GHSA-xffp-6w68-4775 |
- zendframework/zendframework (Packagist) Vendor— Affected 2.2.0 to before 2.2.5 Fixed in 2.2.5 Patch available GHSA-xffp-6w68-4775
Remediation
- Fix · GHSA-xffp-6w68-4775 zendframework/zendframework (Packagist) Fixed in 2.2.5 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-xffp-6w68-4775
References
Other 4
- https://github.com/zendframework/zendframework/commit/bb6784461d3b23ef1db4be8cf47957ccc3b681ed
- https://framework.zend.com/security/advisory/ZF2013-04
- https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework/ZF2013-04.yaml
- https://github.com/zendframework/zendframework
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences