CVEfocus › CVE database › CVE-2021-3007

CVE-2021-3007

CVSS 9.8 CriticalEPSS 75.3% (in the top 1% of all CVEs)Published 2021-01-04Updated 2024-08-03Assigner: mitre

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

What to do

Likely to be exploited: EPSS gives a 75% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Packagist: see the table below for the fixed version per release.

Packagist has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
1Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Packagist librarylaminas/laminas-httpFixed2.14.2GHSA-xx8f-qf9f-5fgw
Packagist libraryzendframework/zendframeworkFix pendingGHSA-xx8f-qf9f-5fgw

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.