{"id":"CVE-2021-3007","published":"2021-01-04T02:26:45Z","modified":"2024-08-03T16:45:50Z","title":"Laminas Project laminas-http before 2.14.2, and Zend Framework 3.0.0, has a deserialization vulnerability that can…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"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","provenance":"source","from":"CVE.org"},"summary":{"text":"The flaw is a deserialization vulnerability in the __destruct method of the Zend\\Http\\Response\\Stream class (Stream.php), affecting laminas-http before 2.14.2 and Zend Framework 3.0.0, in the Laminas Project. An attacker who can control the content being deserialized may achieve remote code execution, though the vendor notes that exploitation requires an unrecommended use case in which attacker-supplied data is deserialized.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:15:02Z"},"cvss":null,"epss":{"score":0.75313,"percentile":0.99514,"date":"2026-11-01","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2021-01-14","exploitedFirstSeen":"2021-01-14","ransomware":false,"evidence":[{"url":"https://www.imperva.com/blog/python-cryptominer-botnet-quickly-adopts-latest-vulnerabilities/","date":"2021-01-14"},{"url":"https://blog.checkpoint.com/2021/01/19/linux-users-should-patch-now-to-block-new-freakout-malware-which-exploits-new-vulnerabilities/","date":"2021-01-19"},{"url":"https://blog.netlab.360.com/not-really-new-pyhton-ddos-bot-n3cr0m0rph-necromorph/","date":"2021-01-19"},{"url":"https://research.checkpoint.com/2021/freakout-leveraging-newest-vulnerabilities-for-creating-a-botnet/","date":"2021-01-19"},{"url":"https://blog.netlab.360.com/necro-upgrades-again-using-tor-dynamic-domain-dga-and-aiming-at-both-windows-linux/","date":"2021-03-18"},{"url":"https://blog.talosintelligence.com/2021/06/necro-python-bot-adds-new-tricks.html","date":"2021-06-03"}],"evidenceTotal":6,"provenance":"source"},"exploited":true,"otx":{"pulseCount":3,"pulses":[{"name":"Proof Point Emerging Exploit list","url":"https://otx.alienvault.com/pulse/6399fdc966948f6b537b9762","created":"2022-12-14"},{"name":"FreakOut – Various Vulnerabilities Leveraged for creating a Botnet","url":"https://otx.alienvault.com/pulse/600ee8f9094928e77e838199","created":"2021-01-25"},{"name":"Necro Botnet upgrades with a new versions using PyInstaller and a DGA","url":"https://otx.alienvault.com/pulse/6009dc6c44b5b4406ffc3672","created":"2021-01-21"}],"provenance":"machine"},"cwes":[],"references":[{"url":"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","tags":["x_refsource_MISC"]},{"url":"https://github.com/laminas/laminas-http/commits/2.15.x/src/Response/Stream.php","tags":["x_refsource_MISC"]},{"url":"https://github.com/laminas/laminas-http/pull/48","tags":["x_refsource_MISC"]},{"url":"https://github.com/laminas/laminas-http/releases/tag/2.14.2","tags":["x_refsource_MISC"]},{"url":"https://research.checkpoint.com/2021/freakout-leveraging-newest-vulnerabilities-for-creating-a-botnet/","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Packagist","package":"zendframework/zendframework","vulnerableRanges":["<=3.0.0"],"patched":[],"from":["GHSA-xx8f-qf9f-5fgw"],"provenance":"source"},{"ecosystem":"Packagist","package":"laminas/laminas-http","vulnerableRanges":["<2.14.2"],"patched":["2.14.2"],"from":["GHSA-xx8f-qf9f-5fgw"],"provenance":"source"}],"advisories":[{"id":"GHSA-xx8f-qf9f-5fgw","url":"https://github.com/advisories/GHSA-xx8f-qf9f-5fgw","severity":"CRITICAL","ecosystem":"Packagist","package":"zendframework/zendframework","vulnerableRanges":["<=3.0.0"],"patched":[],"provenance":"source","from":"GHSA"},{"id":"GHSA-xx8f-qf9f-5fgw","url":"https://github.com/advisories/GHSA-xx8f-qf9f-5fgw","severity":"CRITICAL","ecosystem":"Packagist","package":"laminas/laminas-http","vulnerableRanges":["<2.14.2"],"patched":["2.14.2"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2021-1428","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-1428","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":2,"skipped":1,"earliest":"2021-05-18","earliestUrl":"https://github.com/Vulnmachines/ZF3_CVE-2021-3007","repos":[{"name":"Vulnmachines/ZF3_CVE-2021-3007","url":"https://github.com/Vulnmachines/ZF3_CVE-2021-3007","stars":1,"created":"2021-05-18"},{"name":"KrE80r/cve-2021-3007-vulnerable","url":"https://github.com/KrE80r/cve-2021-3007-vulnerable","stars":0,"created":"2025-12-05"}]},"nuclei":[{"id":"CVE-2021-3007","name":"Laminas Project laminas-http - Remote Code Execution","severity":"critical","path":"http/cves/2021/CVE-2021-3007.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-3007.yaml"}],"first":{"date":"2021-05-18","source":"PoC-in-GitHub","url":"https://github.com/Vulnmachines/ZF3_CVE-2021-3007"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2021-01-04","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2021-3007","provenance":"source"},{"date":"2021-01-14","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://www.imperva.com/blog/python-cryptominer-botnet-quickly-adopts-latest-vulnerabilities/","provenance":"source"},{"date":"2021-05-18","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/Vulnmachines/ZF3_CVE-2021-3007","provenance":"source"}],"speed":{"daysToPublicExploit":134,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":61.3,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 2117 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.9,"detail":"percentile 0.9951"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"2 PoC-in-GitHub repos; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":1.37,"detail":"3 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}