CVE-2021-3007

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…

published January 4, 2021

Patch now

High probability of exploitation

NVD has not assigned a CVSS score to this record. It sits in the 99.5th percentile for exploit probability.

CVSS
—
EPSS
75%
Percentile
99.5
In the wild
Unconfirmed
What it is

⚡ A sneaky deserialization vulnerability lurks in laminas-http versions before 2.14.2, and Zend Framework 3.0.0. If an attacker controls the content, they can execute code remotely! 🔥 Think of this as a restaurant where the chef blindly follows a customer’s recipe without questioning the ingredients. If that recipe includes something dangerous, like spoiled food, the entire kitchen gets compromised! An attacker could exploit this flaw to execute malicious code on the server, potentially leading to a complete takeover or data breach. This isn't just a minor inconvenience—it could lead to devastating consequences for the application and its users!

Put simply

Think of this as a restaurant where the chef blindly follows a customer’s recipe without questioning the ingredients. If that recipe includes something dangerous, like spoiled food, the entire kitchen gets compromised! This deserialization vulnerability affects how the Zend\Http\Response\Stream class in Stream.php handles maliciously crafted data, specifically in its `__destruct` method. The lack of adequate type checking allows attackers to manipulate the deserialization process.

What to do

An attacker could exploit this flaw to execute malicious code on the server, potentially leading to a complete takeover or data breach. This isn't just a minor inconvenience—it could lead to devastating consequences for the application and its users! Upgrade laminas-http to version 2.14.2 or higher, and Zend Framework to above 3.0.0 to mitigate this vulnerability. Additionally, avoid using deserialization with untrusted data as much as possible, and implement strict input validation to bolster security. You've got this! With these updates, you'll be well on your way to securing your application. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.75313 · 99.5th percentile
Published
2021-01-04T02:26Z
EPSS history
Timeline
  • 04 JAN 02:26Z
    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…
    cvelistv5