Skip to content
Fencer Intel
medium 4.3

CVE-2020-7070 json

PHP parses encoded cookie names so malicious `__Host-` cookies can be sent

published 6y ago modified 2mo ago also BIT-libphp-2020-7070 , BIT-php-2020-7070 , BIT-php-min-2020-7070 , EUVD-2020-28204

cvss
4.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
5.0%
EPSS 5.0% chance of exploitation in 30 days, percentile 92%
public exploits
0
none known

Summary

In PHP versions 7.2.x below 7.2.34, 7.3.x below 7.3.23 and 7.4.x below 7.4.11, when PHP is processing incoming HTTP cookie values, the cookie names are url-decoded. This may lead to cookies with prefixes like __Host confused with cookies that decode to such prefix, thus leading to an attacker being able to forge cookie which is supposed to be secure. See also CVE-2020-8184 for more information.

Patch / fix

  • bitnami libphp 7.2.34, 7.3.23, 7.4.11
  • bitnami php 7.2.34, 7.3.23, 7.4.11
  • bitnami php-min 7.2.34, 7.3.23, 7.4.11
  • PHP Group PHP 7.2.34, 7.3.23, 7.4.11
  • php7.4 Debian 11 7.4.11-1

debian advisories DEBIAN-CVE-2020-7070

  • php7.0 Ubuntu 16.04 LTS 7.0.33-0ubuntu0.16.04.16
  • php7.2 Ubuntu 18.04 LTS 7.2.24-0ubuntu0.18.04.7
  • php7.4 Ubuntu 20.04 LTS 7.4.3-4ubuntu2.4
  • php5 Ubuntu Pro 14.04 LTS 5.5.9+dfsg-1ubuntu4.29+esm13

ubuntu advisories UBUNTU-CVE-2020-7070

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • php RHEL 8 7.4.19-1.module+el8.5.0+11143+cc873159
  • libzip RHEL 8 1.6.1-1.module+el8.3.0+6678+b09f589e
  • php-gd RHEL 8 7.4.19-1.module+el8.5.0+11143+cc873159
  • php-cli RHEL 8 7.4.19-1.module+el8.5.0+11143+cc873159
  • php-dba RHEL 8 7.4.19-1.module+el8.5.0+11143+cc873159
  • php-dbg RHEL 8 7.4.19-1.module+el8.5.0+11143+cc873159
  • php-ffi RHEL 8 7.4.19-1.module+el8.5.0+11143+cc873159
  • php-fpm RHEL 8 7.4.19-1.module+el8.5.0+11143+cc873159

red hat advisories RHSA-2021:4213RHSA-2021:2992

  • php7 SLES for SAP 15 SP2, SLES 15 SP2-LTSS, SLES 15 SP2-BCL +10 more 7.4.33-150200.3.46.2
  • php7-test openSUSE Leap 15.3 7.4.33-150200.3.46.2
  • php74 SLE Software Development Kit 12 SP5, SLE Module for Web and Scripting 12 7.4.33-1.47.2
  • php7 SLES for SAP 15 SP1, SLES for SAP 15, SLES 15-LTSS +8 more 7.2.34-150000.4.103.1
  • php7 SLES for SAP 15, SLES 15-LTSS, SLE Module for Web and Scripting 15 SP1 +3 more 7.2.5-4.67.2
  • php72 SLE Software Development Kit 12 SP5, SLE Module for Web and Scripting 12 7.2.5-1.54.1
  • php7 SLE Module for Web and Scripting 15 SP2, SLE Module for Package Hub 15 SP2 7.4.6-3.11.1
  • php53 SLES 11 SP4-LTSS, SLE Point of Sale 11 SP3 5.3.17-112.93.1

suse advisories SUSE-SU-2022:4069-1SUSE-SU-2022:4068-1SUSE-SU-2022:4067-1SUSE-SU-2020:2997-1SUSE-SU-2020:2943-1SUSE-SU-2020:2941-1

  • php7 openSUSE Leap 15.1 7.2.5-lp151.6.36.7
  • php7-test openSUSE Leap 15.1 7.2.5-lp151.6.36.7
  • php7 openSUSE Leap 15.2 7.4.6-lp152.2.9.1
  • php7-test openSUSE Leap 15.2 7.4.6-lp152.2.9.1

opensuse advisories openSUSE-SU-2020:1767-1openSUSE-SU-2020:1703-1

  • php AlmaLinux 8 7.4.19-3.module_el8.6.0+2976+8b9a0d08
  • libzip AlmaLinux 8 1.6.1-1.module_el8.6.0+2750+78feabcb
  • php-gd AlmaLinux 8 7.4.19-3.module_el8.6.0+2976+8b9a0d08
  • php-cli AlmaLinux 8 7.4.19-3.module_el8.6.0+2976+8b9a0d08
  • php-dba AlmaLinux 8 7.4.19-3.module_el8.6.0+2976+8b9a0d08
  • php-dbg AlmaLinux 8 7.4.19-3.module_el8.6.0+2976+8b9a0d08
  • php-ffi AlmaLinux 8 7.4.19-3.module_el8.6.0+2976+8b9a0d08
  • php-fpm AlmaLinux 8 7.4.19-3.module_el8.6.0+2976+8b9a0d08

almalinux advisories ALSA-2021:4213

  • php Rocky Linux 8 7.4.19-1.module+el8.5.0+696+61e7c9ba
  • libzip Rocky Linux 8 1.6.1-1.module+el8.6.0+789+2130c178
  • libzip Rocky Linux 8 1.6.1-1.module+el8.4.0+415+e936cba3
  • php-pear Rocky Linux 8 1:1.10.12-1.module+el8.4.0+415+e936cba3
  • php-pear Rocky Linux 8 1:1.10.12-1.module+el8.6.0+789+2130c178
  • php-pecl-rrd Rocky Linux 8 2.0.1-1.module+el8.4.0+414+2e7afcdd
  • php-pecl-zip Rocky Linux 8 1.18.2-1.module+el8.6.0+789+2130c178
  • php-pecl-zip Rocky Linux 8 1.18.2-1.module+el8.4.0+415+e936cba3

rocky linux advisories RLSA-2021:4213

  • php7 Alpine 3.12 7.3.23-r0
  • php7 Alpine 3.15, Alpine 3.14, Alpine 3.13 7.4.11-r0

alpine advisories ALPINE-CVE-2020-7070

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2020-7070 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2020-7070 updated cvss 5.3

php: URL decoding of cookie names can lead to different interpretation of cookies between browser and server

  • Red Hat Enterprise Linux 5 php, php53 Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 more Red Hat Enterprise Linux 7 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +18 more
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 php, libzip, php-gd, php-cli, php-dba, php-dbg, +30 more
    affected: no fix available “Fix deferred”
  • Red Hat Software Collections rh-php72-php, rh-php72-php-gd, rh-php72-php-cli, rh-php72-php-dba, rh-php72-php-dbg, rh-php72-php-fpm, +22 more
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux AppStream (v. 8) php 7.4.19-1.module+el8.5.0+11143+cc873159, libzip 1.6.1-1.module+el8.3.0+6678+b09f589e, php-gd 7.4.19-1.module+el8.5.0+11143+cc873159, php-cli 7.4.19-1.module+el8.5.0+11143+cc873159, php-dba 7.4.19-1.module+el8.5.0+11143+cc873159, php-dbg 7.4.19-1.module+el8.5.0+11143+cc873159, +28 more
    fixed: vendor fix RHSA-2021:4213
  • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-php73-php 7.3.29-1.el7, rh-php73-php-gd 7.3.29-1.el7, rh-php73-php-cli 7.3.29-1.el7, rh-php73-php-dba 7.3.29-1.el7, rh-php73-php-dbg 7.3.29-1.el7, rh-php73-php-fpm 7.3.29-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) rh-php73-php 7.3.29-1.el7, rh-php73-php-gd 7.3.29-1.el7, rh-php73-php-cli 7.3.29-1.el7, rh-php73-php-dba 7.3.29-1.el7, rh-php73-php-dbg 7.3.29-1.el7, rh-php73-php-fpm 7.3.29-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-php73-php 7.3.29-1.el7, rh-php73-php-gd 7.3.29-1.el7, rh-php73-php-cli 7.3.29-1.el7, rh-php73-php-dba 7.3.29-1.el7, rh-php73-php-dbg 7.3.29-1.el7, rh-php73-php-fpm 7.3.29-1.el7, +22 more
    fixed: vendor fix RHSA-2021:2992

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-26-027-02 updated cvss 5.3

Festo Didactic SE MES PC

  • Festo Didactic SE MES PC shipped_with_Windows_10
    affected: vendor fix

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

Exploit prediction

5.03% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • hackerone.com https://hackerone.com/reports/895727 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 4.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
NVD 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:P/A:N
OSV 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Affected packages

ecosystem package affected fixed in
bitnami libphp
>=7.2.0, <7.2.34
>=7.3.0, <7.3.23
>=7.4.0, <7.4.11
7.2.34
7.3.23
7.4.11
bitnami php
>=7.2.0, <7.2.34
>=7.3.0, <7.3.23
>=7.4.0, <7.4.11
7.2.34
7.3.23
7.4.11
bitnami php-min
>=7.2.0, <7.2.34
>=7.3.0, <7.3.23
>=7.4.0, <7.4.11
7.2.34
7.3.23
7.4.11

Affected products

  • PHP Group PHP

Classification

Weakness
  • CWE-20 Improper Input Validation
  • CWE-565 Reliance on Cookies without Validation and Integrity Checking
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.