ADVISORIES

GitHub Advisory Database

GHSA-xx8f-qf9f-5fgw

Remote code execution in zendframework and laminas-http

Critical CVE-2021-3007

Details

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.

Affected packages

EcosystemPackageAffected versions
Packagistzendframework/zendframework
All versions up to and including 3.0.0
Packagistlaminas/laminas-http
All versions before 2.14.2 (fixed in 2.14.2)

References