CVE-2021-3007
Getlaminas Laminas-http vulnerability
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
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Laminas-http, Zend Framework. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Getlaminas Laminas-http runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/laminas/laminas-http/commits/2.15.x/src/Response/Stream.php · Patch
- github.com/laminas/laminas-http/pull/48 · Patch
- github.com/Ling-Yizhou/zendframework3-/blob/main/zend%20framework3%20%E5%8F%8D%E5%BA%8F%E5 · Exploit
- github.com/laminas/laminas-http/releases/tag/2.14.2 · Third Party Advisory
- research.checkpoint.com/2021/freakout-leveraging-newest-vulnerabilities-for-creating-a-bot · Exploit
- nvd.nist.gov/vuln/detail/CVE-2021-3007
- research.checkpoint.com/2021/freakout-leveraging-newest-vulnerabilities-for-creating-a-bot
- github.com/advisories/GHSA-xx8f-qf9f-5fgw
- nvd.nist.gov/vuln/detail/CVE-2021-3007
- cve.org/CVERecord?id=CVE-2021-3007
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.