NetSight
critical9.8

CVE-2021-3007

Remote code execution in zendframework and laminas-http

Impact

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

EcosystemPackageAffectedFixed in
composerzendframework/zendframework<= 3.0.0none recorded
composerlaminas/laminas-http< 2.14.22.14.2

Affected products

VendorProductAffected versions
GetlaminasLaminas-Http
before 2.14.2
ZendZend Framework
Version 3.0.0

Weakness classification

References