# CVE-2021-3007: Remote code execution in zendframework and laminas-http

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 75.3%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-01-04T02:26:45.000Z
- Modified: 2026-06-17T04:04:33.270Z
- Also known as: GHSA-xx8f-qf9f-5fgw
- Weaknesses: CWE-502
- Assigned by: mitre

## 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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- zendframework/zendframework (Packagist): up to 3.0.0
- laminas/laminas-http (Packagist): before 2.14.2
- getlaminas laminas-http: before 2.14.2
- zend zend_framework: 3.0.0

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <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> (exploit, third-party-advisory, web)
- <https://research.checkpoint.com/2021/freakout-leveraging-newest-vulnerabilities-for-creating-a-botnet/> (exploit, third-party-advisory)
- <https://github.com/laminas/laminas-http/commits/2.15.x/src/Response/Stream.php> (patch, third-party-advisory, web)
- <https://github.com/laminas/laminas-http/pull/48> (patch, third-party-advisory, web)
- <https://github.com/laminas/laminas-http/releases/tag/2.14.2> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3007> (advisory)
- <https://research.checkpoint.com/2021/freakout-leveraging-newest-vulnerabilities-for-creating-a-botnet> (web)

## Sources

- CVE List: [CVE-2021-3007](https://www.cve.org/CVERecord?id=CVE-2021-3007), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-xx8f-qf9f-5fgw](https://github.com/advisories/GHSA-xx8f-qf9f-5fgw), CC-BY-4.0, modified 2024-04-22
- NVD: [CVE-2021-3007](https://nvd.nist.gov/vuln/detail/CVE-2021-3007), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3007 · Whole record: https://cve.day/CVE-2021-3007.json · Rebuilt by cve.day 2026-11-25T22:57:59.149Z
