CVE-2021-3007Getlaminas Laminas-http
Critical 9.8 No auth neededHigh EPSS
Follow: this CVE · Getlaminas · Getlaminas Laminas-http We alert you by email or Slack (account required).
- Priority
- 81
- CVSS 3.1
- 9.8
- EPSS
- 75.3% probability of exploitation in 30 days · percentile 100
- Auth required
- No
- Published
- Jan 4, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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
What to do
- Apply the vendor's security update for Laminas-http.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | laminas/laminas-http |
< 2.14.2 |
2.14.2 |
composer require "laminas/laminas-http:^2.14.2" |
| Packagist | zendframework/zendframework |
≤ 3.0.0 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-xx8f-qf9f-5fgw). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| getlaminas | laminas-http | < 2.14.2 |
| zend | zend_framework | 3.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- research.checkpoint.com Exploit Third Party Advisory