{"id":"GHSA-mg7h-9qfx-4r83","aliases":["GHSA-mg7h-9qfx-4r83"],"related":[],"kind":"vulnerability","state":"published","title":"ZendFramework Potential Proxy Injection Vulnerabilities","summary":"`Zend\\Session\\Validator\\RemoteAddr` and `Zend\\View\\Helper\\ServerUrl` were found to be improperly parsing HTTP headers for proxy information, which could potentially allow an attacker to spoof a proxied IP or host name.\n\nIn `Zend\\Session\\Validator\\RemoteAddr`, if the client is behind a proxy server, the detection of the proxy URL was incorrect, and could lead to invalid results on subsequent lookups.\n\nIn `Zend\\View\\Helper\\ServerUrl`, if the server lives behind a proxy, the helper would always generate a URL based on the proxy host, regardless of whether or not this was desired; additionally, it did not take into account the proxy port or protocol, if provided.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"`Zend\\Session\\Validator\\RemoteAddr` and `Zend\\View\\Helper\\ServerUrl` were found to be improperly parsing HTTP headers for proxy information, which could potentially allow an attacker to spoof a proxied IP or host name.\n\nIn `Zend\\Session\\Validator\\RemoteAddr`, if the client is behind a proxy server, the detection of the proxy URL was incorrect, and could lead to invalid results on subsequent lookups.\n\nIn `Zend\\View\\Helper\\ServerUrl`, if the server lives behind a proxy, the helper would always generate a URL based on the proxy host, regardless of whether or not this was desired; additionally, it did not take into account the proxy port or protocol, if provided.","format":"markdown","source":"ghsa"}],"published":"2024-06-07T20:46:14.000Z","modified":"2024-12-04T05:25:14.395Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-74"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.5"}],"ecosystem":"Packagist","package":"zendframework/zendframework","purl":"pkg:composer/zendframework/zendframework","source":"ghsa"}],"references":[{"url":"https://github.com/zendframework/zendframework/commit/1040acaf70d297ec7214934d8ddc3e811d249b5c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/zendframework/zendframework/commit/ad8fdc3378710b7cfbe2a271dbb0e3256cffb599","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/zendframework/zendframework/commit/ada1fab92f6d5c7ad96c5a63f3196d925e3f5887","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/zendframework/zendframework/commit/b914ecdd4d17ab5b61f15ccdc02a6e9b255b15d8","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/zendframework/zendframework/commit/c3819abbf2c9571069c893d27ae6170bda413925","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/zendframework/zendframework/commit/cfaf5ea095c93f3e70343358a3a88c3924d7ed7d","tags":["web"],"sources":["ghsa"]},{"url":"https://framework.zend.com/security/advisory/ZF2012-04","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework/ZF2012-04.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/zendframework/zendframework","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mg7h-9qfx-4r83","url":"https://github.com/advisories/GHSA-mg7h-9qfx-4r83","licence":"CC-BY-4.0","modified":"2024-12-04T05:25:14.395Z"}],"updatedAt":"2026-11-25T22:56:32.572Z"}