← Vulnerability feed

Vulnerability record · CVE-2021-3007 · published 4 January 2021

CVE-2021-3007: Laminas-http and Zend Framework PHP deserialization RCE

Getlaminas · Laminas Http

Laminas-http before 2.14.2 and Zend Framework 3.0.0 contain a PHP object deserialization flaw tied to the __destruct method of Zend\Http\Response\Stream in Stream.php. When attacker-controlled content is deserialized, it can lead to remote code execution. The vendor frames this as a PHP language issue and only added type checking to block exploitation in unrecommended use cases, and Zend Framework is no longer maintained.

9.8 CVSS 3.1 Critical EPSS 75% · top 0.5% CWE-502 · Deserialization of untrusted data
9.8CVSS 3.1 base score, v2 7.5
75%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
10References, 4 tagged exploit
17 Jun 2026Last modified by NVD

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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

critical priorityCVSS 9.8 with network reachability, no authentication or interaction, and public exploit references plus very high EPSS make this a top remediation target despite the missing KEV listing.

What it is

Laminas-http before 2.14.2 and Zend Framework 3.0.0 contain a PHP object deserialization flaw tied to the __destruct method of Zend\Http\Response\Stream in Stream.php. When attacker-controlled content is deserialized, it can lead to remote code execution. The vendor frames this as a PHP language issue and only added type checking to block exploitation in unrecommended use cases, and Zend Framework is no longer maintained.

Impact

An attacker who can get untrusted data deserialized gains remote code execution in the PHP process, giving full control over confidentiality, integrity and availability of the affected application and host.

Attack surface

Reached over the network with no authentication and no user interaction per the CVSS vector (AV:N/AC:L/PR:N/UI:N), but exploitation requires the application to deserialize attacker-supplied content, which the vendor describes as an unrecommended use case.

Exploitation

Not listed in CISA KEV, but EPSS is very high (0.753, 99.5th percentile) and public references are tagged Exploit, including a Check Point research writeup on botnet use.

What to do

  • Upgrade laminas-http to 2.14.2 or later, which adds type checking in Stream.php.
  • If Zend Framework 3.0.0 is still in use, migrate off it since the maintainer no longer supports it.
  • Eliminate deserialization of attacker-supplied data; never pass untrusted input to unserialize().
  • Where deserialization is unavoidable, restrict allowed classes and validate input types before use.
  • Monitor and restrict outbound network traffic from PHP application hosts to limit post-exploitation activity.

Detection

  • Search application code and logs for unserialize() calls handling request, cookie or file input.
  • Alert on PHP processes spawning unexpected child processes or making unusual outbound connections.
  • Look for requests containing serialized PHP object payloads (O: or a: patterns) in parameters, cookies or bodies.
  • Monitor for Zend\Http\Response\Stream class references in serialized input reaching the application.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2021-3007 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2020-29312Zend framework deserialization of untrusted data vulnerabilityAn issue found in Zend Framework v.3.1.3 and before allow a remote attacker to execute arbitrary code via the unserialize function. Note: This has be…EPSS 1.3%9.8CVE-2014-8089Zend framework sql injection vulnerabilitySQL injection vulnerability in Zend Framework before 1.12.9, 2.2.x before 2.2.8, and 2.3.x before 2.3.3, when using the sqlsrv PHP extension, allows …EPSS 2.6%9.8CVE-2011-1939Zend framework sql injection vulnerabilitySQL injection vulnerability in Zend Framework 1.10.x before 1.10.9 and 1.11.x before 1.11.6 when using non-ASCII-compatible encodings in conjunction …EPSS 3.9%9.8CVE-2014-4914Zend framework sql injection vulnerabilityThe Zend_Db_Select::order function in Zend Framework before 1.12.7 does not properly handle parentheses, which allows remote attackers to conduct SQL…EPSS 2.3%9.8CVE-2016-4861Fedoraproject fedora sql injection vulnerabilityThe (1) order and (2) group methods in Zend_Db_Select in the Zend Framework before 1.12.20 might allow remote attackers to conduct SQL injection atta…EPSS 4.1%9.8CVE-2016-6233Fedoraproject fedora sql injection vulnerabilityThe (1) order and (2) group methods in Zend_Db_Select in the Zend Framework before 1.12.19 might allow remote attackers to conduct SQL injection atta…EPSS 2.0%9.8CVE-2016-10034Zend framework command injection vulnerabilityThe setFrom function in the Sendmail adapter in the zend-mail component before 2.4.11, 2.5.x, 2.6.x, and 2.7.x before 2.7.2, and Zend Framework befor…EPSS 38%9.8CVE-2015-7695Zend framework sql injection vulnerabilityThe PDO adapters in Zend Framework before 1.12.16 do not filer null bytes in SQL statements, which allows remote attackers to execute arbitrary SQL c…EPSS 3.0%

Source: NIST National Vulnerability Database (record CVE-2021-3007), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.