CVE-2021-3007 is an insecure deserialization vulnerability in Laminas Project laminas-http before 2.14.2 and in Zend Framework 3.0.0. The issue is associated with the Zend\Http\Response\Stream class, specifically behavior reachable through its __destruct method. When an application unserializes attacker-controlled PHP object data and the relevant class is available, a crafted object can trigger unsafe destructor behavior involving stream-related properties and cleanup logic. Documented exploitation paths include use of a gadget chain based on Zend\Http\Response\Stream that can perform arbitrary file deletion, and the issue may be chainable with other gadgets present in the target application to achieve remote code execution. The vulnerability is therefore library-level, but exploitation depends on application code exposing an unsafe unserialize() path for untrusted input.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos (1 hidden).
This repository provides a complete proof-of-concept (PoC) exploit for CVE-2021-3007, a critical PHP deserialization vulnerability in Zend\Http\Response\Stream (laminas-http <2.14.2, zend-http <=2.14.1). The exploit leverages a vulnerable endpoint (vulnerable-app/index.php) that unserializes user-supplied data, allowing an attacker to send a crafted serialized object that triggers arbitrary file write on the server. The main exploit logic is implemented in exploit.php, which generates the payload and sends it via HTTP POST to the target. The repository includes a Docker environment (Dockerfile, docker-compose.yml) for easy setup of a vulnerable test application, and a bash script (test.sh) to automate exploitation and verification. The exploit demonstrates the ability to write arbitrary files, which can be leveraged for remote code execution. The repository is structured for educational and authorized security testing purposes, and includes documentation and references for further reading.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
An insecure PHP object deserialization issue in laminas-http / Zend Framework involving the Zend\Http\Response\Stream destructor gadget, enabling arbitrary file deletion via unlink(), and potentially chainable to RCE depending on available gadgets/classes in the target application.
A critical insecure deserialization vulnerability in Laminas/Zend Framework (laminas-http) that can lead to remote code execution via gadget chains in Laminas and Zend namespaces.
A Zend Framework vulnerability added to Necro version 2's exploitation set, showing the botnet operators' rapid adoption of newly disclosed flaws.
A Zend Framework vulnerability integrated into Necro's second version as a newly disclosed exploit for propagation.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.