# GHSA-xffp-6w68-4775: Zendframework Remote Address Spoofing Vector in `Zend\Http\PhpEnvironment\RemoteAddress`

- Severity: High 7.5 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-06-07T20:02:07.000Z
- Modified: 2024-12-04T05:41:43.344Z
- Weaknesses: CWE-601

## Description

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.

(As written by GitHub Advisory Database.)

## Affected

- zendframework/zendframework (Packagist): from 2.2.0 before 2.2.5

## References

- <https://github.com/zendframework/zendframework/commit/bb6784461d3b23ef1db4be8cf47957ccc3b681ed> (web)
- <https://framework.zend.com/security/advisory/ZF2013-04> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework/ZF2013-04.yaml> (web)
- <https://github.com/zendframework/zendframework> (package)

## Sources

- GitHub Advisory Database: [GHSA-xffp-6w68-4775](https://github.com/advisories/GHSA-xffp-6w68-4775), CC-BY-4.0, modified 2024-12-04

---

Page: https://cve.day/GHSA-xffp-6w68-4775 · Whole record: https://cve.day/GHSA-xffp-6w68-4775.json · Rebuilt by cve.day 2026-11-25T22:56:33.369Z
