{"id":"CVE-2021-3007","aliases":["GHSA-xx8f-qf9f-5fgw"],"url":"https://o3.security/vulnerability/CVE-2021-3007","summary":"Remote code execution in zendframework and laminas-http","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","published":"2021-01-04T03:15:13.527Z","modified":"2026-07-09T01:25:12.886507Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":5,"affectedPackages":[{"ecosystem":"Packagist","name":"zendframework/zendframework","fixedVersion":null},{"ecosystem":"Packagist","name":"laminas/laminas-http","fixedVersion":"2.14.2"}],"fix":{"url":"https://github.com/laminas/laminas-http/pull/48","label":"laminas/laminas-http#48"},"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/"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-09T01:25:12.886507Z"}}