CVE-2021-3007

CRITICAL
Published Jan 4, 20215y ago · Modified Jun 17, 20262w ago
9.8 CVSS 3.1
Critical
Find Similar
Published Jan 4, 2021 5y ago
Last Modified Jun 17, 2026 2w ago

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

CVSS Details

Base Score
9.8
Exploitability
3.9
Impact
5.9
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality High
Integrity High
Availability High

Threat Intelligence

No active exploitation signals — not in CISA KEV and no EPSS score yet.

Exploit & Patch Status
Public Exploit Known
Patch Available

Weaknesses 1

CWE-502 Deserialization of Untrusted Data Validation

Affected Products 2

VendorProductVersionRange
getlaminaslaminas-http* <2.14.2
zendzend_framework3.0.0any

References 5

  • github.com 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
    ExploitThird Party Advisory
  • github.com https://github.com/laminas/laminas-http/commits/2.15.x/src/Response/Stream.php
    PatchThird Party Advisory
  • github.com https://github.com/laminas/laminas-http/pull/48
    PatchThird Party Advisory
  • github.com https://github.com/laminas/laminas-http/releases/tag/2.14.2
    Third Party Advisory
  • research.checkpoint.com https://research.checkpoint.com/2021/freakout-leveraging-newest-vulnerabilities-for-creating-a-botnet/
    ExploitThird Party Advisory

Remediation

  • github.com https://github.com/laminas/laminas-http/commits/2.15.x/src/Response/Stream.php
    PatchThird Party Advisory
  • github.com https://github.com/laminas/laminas-http/pull/48
    PatchThird Party Advisory