CVE-2021-3007 is an insecure PHP object deserialization vulnerability affecting laminas-http versions before 2.14.2 and Zend Framework 3.0.0. The issue involves Zend\Http\Response\Stream::__destruct(), whose cleanup behavior can invoke file deletion on attacker-influenced object state after a crafted serialized object is deserialized. The built-in gadget behavior supports arbitrary file deletion; where the application or its dependencies expose additional suitable gadgets, it may be chained to achieve remote code execution.
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.
11 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 remote-code-execution vulnerability in Zend used by the Necro botnet as a propagation vector.
A Zend Framework vulnerability added to Necro version 2's exploitation set, showing the botnet operators' rapid adoption of newly disclosed flaws.
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.