{"id":"CVE-2021-3007","aliases":["CLSA-2026-1779151616","CLSA-2026-1782867594","CLSA-2026-1783645389","EUVD-2021-1428","GHSA-xx8f-qf9f-5fgw"],"status":"disputed","title":"Remote code execution in zendframework and laminas-http","description":"Laminas Project laminas-http before 2.14.2, and Zend Framework 3.0.0, has a deserialization vulnerability that can lead to remote code execution if the content is controllable, related to the __destruct method of the Zend\\Http\\Response\\Stream class in Stream.php. NOTE: Zend Framework is no longer supported by the maintainer. NOTE: the laminas-http vendor considers this a \"vulnerability in the PHP language itself\" but has added certain type checking as a way to prevent exploitation in (unrecommended) use cases where attacker-supplied data can be deserialized","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.75313,"percentile":0.99521,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-502"],"published":"2021-01-04T02:26:45Z","modified":"2026-10-24T10:50:08Z","exploits":[{"source":"nuclei","id":"CVE-2021-3007","title":"Laminas Project laminas-http - Remote Code Execution","type":"detection template","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-3007.yaml"},{"source":"pocgithub","id":"KrE80r/cve-2021-3007-vulnerable","title":"KrE80r/cve-2021-3007-vulnerable","date":"2025-12-05","url":"https://github.com/KrE80r/cve-2021-3007-vulnerable"},{"source":"pocgithub","id":"Vulnmachines/ZF3_CVE-2021-3007","title":"Vulnmachines/ZF3_CVE-2021-3007","date":"2021-05-18","url":"https://github.com/Vulnmachines/ZF3_CVE-2021-3007"},{"source":"pocgithub","id":"yunus-a1i/CVE-2021-3007-docker-poc","title":"yunus-a1i/CVE-2021-3007-docker-poc","date":"2025-12-05","url":"https://github.com/yunus-a1i/CVE-2021-3007-docker-poc"}],"fixes":[{"ecosystem":"Packagist","package":"laminas/laminas-http","fixed_in":["2.14.2"],"sources":["ghsa","osv"]},{"ecosystem":"TuxCare:Packagist","package":"zendframework/zend-http","fixed_in":["2.5.6-p1+tuxcare"],"sources":["osv"]},{"ecosystem":"TuxCare:Packagist","package":"zendframework/zendframework","fixed_in":["2.4.13-p1+tuxcare"],"sources":["osv"]},{"ecosystem":"TuxCare:Packagist","package":"laminas/laminas-http","fixed_in":["2.5.6-p1+tuxcare"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"zendframework/zendframework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.0.0"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"laminas/laminas-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.14.2"}]}]},{"source":"osv","ecosystem":"TuxCare:Packagist","package":"zendframework/zend-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.5.6"},{"fixed":"2.5.6-p1+tuxcare"}]}],"versions":["2.5.6"]},{"source":"osv","ecosystem":"TuxCare:Packagist","package":"zendframework/zendframework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.4.13"},{"fixed":"2.4.13-p1+tuxcare"}]}],"versions":["2.4.13"]},{"source":"osv","ecosystem":"TuxCare:Packagist","package":"laminas/laminas-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.5.6"},{"fixed":"2.5.6-p1+tuxcare"}]}],"versions":["2.5.6"]},{"source":"osv","ecosystem":"Packagist","package":"zendframework/zendframework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.0.0"}]}],"versions":["2.0.0","2.0.0beta4","2.0.0beta5","2.0.0rc1","2.0.0rc2","2.0.0rc3","2.0.0rc4","2.0.0rc5","2.0.0rc6","2.0.0rc7","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.1.5","2.1.6","2.2.0","2.2.0rc1","2.2.0rc2","2.2.0rc3","2.2.1","2.2.10","2.2.2","2.2.3","2.2.4","2.2.5","2.2.6","2.2.7","2.2.8","2.2.9","2.3.0","2.3.1","2.3.2","2.3.3","2.3.4","2.3.5","2.3.6","2.3.7","2.3.8","2.3.9","2.4.0","2.4.0rc1","2.4.0rc2","2.4.0rc3","2.4.0rc4","2.4.0rc5","2.4.0rc6","2.4.0rc7","2.4.1","2.4.10","2.4.11","2.4.12","2.4.13","2.4.2","2.4.3","2.4.4","2.4.5","2.4.6","2.4.7","2.4.8","2.4.9","2.5.0","2.5.1","2.5.2","2.5.3","3.0.0"]},{"source":"osv","ecosystem":"Packagist","package":"laminas/laminas-http","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.14.2"}]}],"versions":["2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.1.5","2.1.6","2.10.0","2.10.1","2.11.0","2.11.1","2.11.2","2.11.3","2.12.0","2.13.0","2.14.0","2.14.1","2.2.0","2.2.0rc1","2.2.0rc2","2.2.0rc3","2.2.1","2.2.10","2.2.2","2.2.3","2.2.4","2.2.5","2.2.6","2.2.7","2.2.8","2.2.9","2.3.0","2.3.1","2.3.2","2.3.3","2.3.4","2.3.5","2.3.6","2.3.7","2.3.8","2.3.9","2.4.0","2.4.0rc1","2.4.0rc2","2.4.0rc3","2.4.0rc4","2.4.0rc5","2.4.0rc6","2.4.0rc7","2.4.1","2.4.10","2.4.11","2.4.12","2.4.13","2.4.2","2.4.3","2.4.4","2.4.5","2.4.6","2.4.7","2.4.8","2.4.9","2.5.0","2.5.1","2.5.2","2.5.3","2.5.4","2.5.5","2.5.6","2.6.0","2.7.0","2.8.0","2.8.1","2.8.2","2.8.3","2.8.4","2.9.0","2.9.1"]}],"products":[{"vendor":"getlaminas","product":"laminas-http"},{"vendor":"zend","product":"zend_framework"}],"references":[{"url":"https://github.com/Ling-Yizhou/zendframework3-/blob/main/zend%20framework3%20%E5%8F%8D%E5%BA%8F%E5%88%97%E5%8C%96%20rce.md","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://github.com/laminas/laminas-http/commits/2.15.x/src/Response/Stream.php","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/laminas/laminas-http/pull/48","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/laminas/laminas-http/releases/tag/2.14.2","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://research.checkpoint.com/2021/freakout-leveraging-newest-vulnerabilities-for-creating-a-botnet/","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3007","tags":["advisory"]},{"url":"https://research.checkpoint.com/2021/freakout-leveraging-newest-vulnerabilities-for-creating-a-botnet","tags":["web"]},{"url":"https://github.com/advisories/GHSA-xx8f-qf9f-5fgw"}],"sources":{"cve":[{"id":"CVE-2021-3007","description":"Laminas Project laminas-http before 2.14.2, and Zend Framework 3.0.0, has a deserialization vulnerability that can lead to remote code execution if the content is controllable, related to the __destruct method of the Zend\\Http\\Response\\Stream class in Stream.php. NOTE: Zend Framework is no longer supported by the maintainer. NOTE: the laminas-http vendor considers this a \"vulnerability in the PHP language itself\" but has added certain type checking as a way to prevent exploitation in (unrecommended) use cases where attacker-supplied data can be deserialized","status":"disputed","published":"2021-01-04T02:26:45Z","modified":"2024-08-03T16:45:50.691Z","updated_at":"2026-11-02T14:33:04.020035Z"}],"euvd":[{"id":"EUVD-2021-1428","description":"Laminas Project laminas-http before 2.14.2, and Zend Framework 3.0.0, has a deserialization vulnerability that can lead to remote code execution if the content is controllable, related to the __destruct method of the Zend\\Http\\Response\\Stream class in Stream.php. NOTE: Zend Framework is no longer supported by the maintainer. NOTE: the laminas-http vendor considers this a \"vulnerability in the PHP language itself\" but has added certain type checking as a way to prevent exploitation in (unrecommended) use cases where attacker-supplied data can be deserialized","status":"published","published":"2021-01-04T02:26:45Z","modified":"2024-08-03T16:45:50Z","updated_at":"2026-11-03T03:25:14.091701Z"}],"ghsa":[{"id":"GHSA-xx8f-qf9f-5fgw","title":"Remote code execution in zendframework and laminas-http","description":"Laminas Project laminas-http before 2.14.2, and Zend Framework 3.0.0, has a deserialization vulnerability that can lead to remote code execution if the content is controllable, related to the __destruct method of the Zend\\Http\\Response\\Stream class in Stream.php. NOTE: Zend Framework is no longer supported by the maintainer. NOTE: the laminas-http vendor considers this a \"vulnerability in the PHP language itself\" but has added certain type checking as a way to prevent exploitation in (unrecommended) use cases where attacker-supplied data can be deserialized.","status":"published","published":"2021-06-08T20:11:19Z","modified":"2024-04-22T19:04:06Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T14:37:44.335614Z"}],"nvd":[{"id":"CVE-2021-3007","description":"Laminas Project laminas-http before 2.14.2, and Zend Framework 3.0.0, has a deserialization vulnerability that can lead to remote code execution if the content is controllable, related to the __destruct method of the Zend\\Http\\Response\\Stream class in Stream.php. NOTE: Zend Framework is no longer supported by the maintainer. NOTE: the laminas-http vendor considers this a \"vulnerability in the PHP language itself\" but has added certain type checking as a way to prevent exploitation in (unrecommended) use cases where attacker-supplied data can be deserialized","status":"disputed","published":"2021-01-04T03:15:13.527Z","modified":"2026-06-17T04:04:33.27Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T14:06:49.284888Z"}],"osv":[{"id":"CVE-2021-3007","description":"Laminas Project laminas-http before 2.14.2, and Zend Framework 3.0.0, has a deserialization vulnerability that can lead to remote code execution if the content is controllable, related to the __destruct method of the Zend\\Http\\Response\\Stream class in Stream.php. NOTE: Zend Framework is no longer supported by the maintainer. NOTE: the laminas-http vendor considers this a \"vulnerability in the PHP language itself\" but has added certain type checking as a way to prevent exploitation in (unrecommended) use cases where attacker-supplied data can be deserialized","status":"published","published":"2021-01-04T03:15:13.527Z","modified":"2026-10-24T10:50:08.359771127Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:19.483607Z"},{"id":"GHSA-xx8f-qf9f-5fgw","title":"Remote code execution in zendframework and laminas-http","description":"Laminas Project laminas-http before 2.14.2, and Zend Framework 3.0.0, has a deserialization vulnerability that can lead to remote code execution if the content is controllable, related to the __destruct method of the Zend\\Http\\Response\\Stream class in Stream.php. NOTE: Zend Framework is no longer supported by the maintainer. NOTE: the laminas-http vendor considers this a \"vulnerability in the PHP language itself\" but has added certain type checking as a way to prevent exploitation in (unrecommended) use cases where attacker-supplied data can be deserialized.","status":"published","published":"2021-06-08T20:11:19Z","modified":"2024-04-22T19:34:11.085249Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T15:47:00.604718Z"},{"id":"CLSA-2026-1779151616","title":"TuxCare security update for zendframework/zend-http (1 CVE)","description":"TuxCare rebuilt zendframework/zend-http to address 1 CVE. Fixed in 2.5.6-p1+tuxcare.","status":"published","published":"2026-08-04T14:52:32Z","modified":"2026-10-15T09:47:41.9962215Z","updated_at":"2026-11-02T15:43:45.090939Z"},{"id":"CLSA-2026-1782867594","title":"TuxCare security update for zendframework/zendframework (1 CVE)","description":"TuxCare rebuilt zendframework/zendframework to address 1 CVE. Fixed in 2.4.13-p1+tuxcare.","status":"published","published":"2026-08-04T14:52:40Z","modified":"2026-10-15T09:47:53.554219871Z","updated_at":"2026-11-02T15:43:45.794021Z"},{"id":"CLSA-2026-1783645389","title":"TuxCare security update for laminas/laminas-http (1 CVE)","description":"TuxCare rebuilt laminas/laminas-http to address 1 CVE. Fixed in 2.5.6-p1+tuxcare.","status":"published","published":"2026-08-04T14:52:42Z","modified":"2026-10-15T09:47:47.907710735Z","updated_at":"2026-11-02T15:43:46.151924Z"}]}}
