CVE-2021-3007
highpriority · attend · 75EPSS 0.753 · 100 %ileexploit · PoCEUUSEPSS · scored 2026-10-27
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
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.5–9.8
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (3)
Public proof-of-concept and weaponised exploit code.
- Vulnmachines/ZF3_CVE-2021-3007ZendFramework_CVE-2021-3007 PoCPoC · poc_in_github
- yunus-a1i/CVE-2021-3007-docker-pocyunus-a1i/CVE-2021-3007-docker-pocPoC · poc_in_github
affected products (5)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-xx8f-qf9f-5fgwRemote code execution in zendframework and laminas-http2021-06-08ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (18)
External citations — patches, advisories, analysis.
- https://github.com/Ling-Yizhou/zendframework3-/blob/main/zend%20framework3%20%E5%8F%8D%E5%BA%8F%E5%88%97%E5%8C%96%20rce.mdcnnvd
- https://github.com/laminas/laminas-cnnvd
- https://github.com/laminas/laminas-http/commits/2.15.x/src/Response/Stream.phpPatchcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-3007cnnvd
- https://research.checkpoint.com/2021/freakout-leveraging-newest-vulnerabilities-for-creating-a-botnet/cnnvd
- https://vigilance.fr/vulnerability/Zend-Framework-code-execution-via-Zend-Http-Response-Stream-Deserialization-34232cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2021042118cnnvd
- https://www.huawei.com/cn/psirt/security-notices/huawei-sn-20210120-01-liferay-cncnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan