CVE-2021-3007: Laminas Project laminas-http before 2.14.2, and Zend Framework 3.0.0, has a deserialization vulnerability that
CVE-2021-3007 is a critical-severity flaw (CVSS 9.8) affecting laminas-http, zend framework. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 checki
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 75.3% (top 1%) |
| CISA exploited list | No |
| Weakness | CWE-502 |
| Published | 2021-01-04 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: Vulnmachines/ZF3_CVE-2021-3007 (1 stars)
- GitHub PoC: yunus-a1i/CVE-2021-3007-docker-poc (0 stars)
- GitHub PoC: KrE80r/cve-2021-3007-vulnerable (0 stars)
- Write-up: github.com/Ling-Yizhou/zendframework3-/blob/main/zend%20framework3%20%E5%8F%8D%E5%BA%8F%E5
- Nuclei scan template: Laminas Project laminas-http - Remote Code Execution
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-3007?
laminas-http: upgrade to 2.14.2; zend framework: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2021-3007 being exploited?
CVE-2021-3007 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-3007 affect?
CVE-2021-3007 affects laminas-http, zend framework. Severity is critical (CVSS 9.8). 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\Stre
How urgent is CVE-2021-3007?
Priority 69/100. Critical severity; EPSS top 1%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action