{"id":"CVE-2021-3007","details":"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","aliases":["GHSA-xx8f-qf9f-5fgw"],"modified":"2026-07-09T01:25:12.886507Z","published":"2021-01-04T03:15:13.527Z","references":[{"type":"ADVISORY","url":"https://github.com/laminas/laminas-http/releases/tag/2.14.2"},{"type":"FIX","url":"https://github.com/laminas/laminas-http/commits/2.15.x/src/Response/Stream.php"},{"type":"FIX","url":"https://github.com/laminas/laminas-http/pull/48"},{"type":"EVIDENCE","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"},{"type":"EVIDENCE","url":"https://research.checkpoint.com/2021/freakout-leveraging-newest-vulnerabilities-for-creating-a-botnet/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/laminas/laminas-http","events":[{"introduced":"0"},{"fixed":"298f732e1acb031db70ea4fd2133a283b2a4a65e"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:getlaminas:laminas-http:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"2.14.2"}]}}],"versions":["2.14.1","2.14.0","2.13.0","2.12.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3007.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/zendframework/zendframework","events":[{"introduced":"7fb89c778508c3969b04d478c6f02a5a54e3bbd2"},{"last_affected":"7fb89c778508c3969b04d478c6f02a5a54e3bbd2"}],"database_specific":{"cpe":"cpe:2.3:a:zend:zend_framework:3.0.0:*:*:*:*:*:*:*","extracted_events":[{"introduced":"3.0.0"},{"last_affected":"3.0.0"}],"source":"CPE_STRING"}}],"versions":["3.0.0","release-3.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3007.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}