9.8critical
Remote code execution in zendframework and laminas-http
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 75.3% (higher than 99% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-xx8f-qf9f-5fgw
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| zendframework/zendframework (Packagist) | up to 3.0.0 | GitHub Advisory Database |
| laminas/laminas-http (Packagist) | before 2.14.2 | GitHub Advisory Database |
| getlaminas laminas-http | before 2.14.2 | NVD |
| zend zend_framework | 3.0.0 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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
GitHub Advisory Database
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.
NVD (es)
** EN DISPUTA ** Laminas Project laminas-http versión anterior a 2.14.2, y Zend Framework versión 3.0.0, tiene una vulnerabilidad de deserialización que puede llevar a la ejecución remota de código si el contenido es controlable, relacionado con el método __destructura de la clase Zend\Http\Response\Stream en Stream.php. NOTA: Zend Framework ya no está soportado por el mantenedor. NOTA: el proveedor de laminas-http considera esto como una "vulnerabilidad en el propio lenguaje PHP" pero ha añadido cierto tipo de chequeo como una forma de prevenir la explotación en casos de uso (no recomendado) donde los datos suministrados por el atacante pueden ser deserializados
References
| 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 | exploit, third-party-advisory, web | |
| https://github.com/laminas/laminas-http/commits/2.15.x/src/Response/Stream.php | patch, third-party-advisory, web | |
| https://github.com/laminas/laminas-http/pull/48 | patch, third-party-advisory, web | |
| https://github.com/laminas/laminas-http/releases/tag/2.14.2 | third-party-advisory, web | |
| https://research.checkpoint.com/2021/freakout-leveraging-newest-vulnerabilities-for-creating-a-botnet/ | exploit, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-3007 | advisory | |
| https://research.checkpoint.com/2021/freakout-leveraging-newest-vulnerabilities-for-creating-a-botnet | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-3007 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xx8f-qf9f-5fgw changed 2024-04-22 | CC-BY-4.0 |
| NVD | CVE-2021-3007 changed 2026-06-17 | Public domain |