Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2021-3007: Laminas Project laminas-http before 2.14.2, and Zend Framework 3.0.0, has a deserialization vulnerability that

69
This week
CRITICAL 9.8REMOTEUPGRADEDOWNGRADE

CVE-2021-3007 is a critical-severity flaw (CVSS 9.8) affecting laminas-http, zend framework. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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 checki

Why this priority

  • Critical severity
  • EPSS top 1%: very likely to be exploited
  • Public exploit reference
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance75.3% (top 1%)
CISA exploited listNo
WeaknessCWE-502
Published2021-01-04
Last modified2026-06-17
Publisher (CNA): MITRE · Vendor: getlaminas · zend

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

getlaminas laminas-http UPGRADE
Affected: < 2.14.2
Fixed in: 2.14.2
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy laminas-http || rpm -q laminas-http || laminas-http --version
2. UPGRADE to 2.14.2 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade laminas-http
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade laminas-http
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
zend zend framework DOWNGRADE
Affected: 3.0.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 3.0.0
1. Check installed version
apt-cache policy zend-framework || rpm -q zend-framework || zend-framework --version
2. No fixed release: DOWNGRADE to a release before 3.0.0 (Debian / Ubuntu)
apt-cache madison zend-framework sudo apt install zend-framework=<VERSION_BEFORE_3.0.0> sudo apt-mark hold zend-framework
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list zend-framework sudo dnf downgrade zend-framework-<VERSION_BEFORE_3.0.0> sudo dnf versionlock add zend-framework
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.

Exact fixes by distribution

A distro patch exists: prefer upgrading over downgrading.
Composer (PHP) · zendframework/zendframework · NO FIX YET · vulnerable: <= 3.0.0 · source
Composer (PHP) · laminas/laminas-http · FIXED · 2.14.2 · vulnerable: < 2.14.2 · source
composer require "laminas/laminas-http:>=2.14.2"
Fedora 46 · root · FIXED · 6.40.04-6.fc46 · FEDORA-2026-deac340022 · source
sudo dnf upgrade --advisory=FEDORA-2026-deac340022
Fedora ELN · man-pages · FIXED · 6.20-1.eln159 · FEDORA-2026-f1f5fb11b4 · source
sudo dnf upgrade --advisory=FEDORA-2026-f1f5fb11b4

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2021-3007?

laminas-http: upgrade to 2.14.2; zend framework: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.

Is CVE-2021-3007 being exploited?

CVE-2021-3007 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2021-3007 affect?

CVE-2021-3007 affects laminas-http, zend framework. Severity is critical (CVSS 9.8). 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\Stre

How urgent is CVE-2021-3007?

Priority 69/100. Critical severity; EPSS top 1%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action

Software pages

PHP vulnerabilities

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.