CVEfocus › CVE database › CVE-2020-7070

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

CVSS 4.3 MediumEPSS 5.0% (higher than 93% of CVEs)Published 2020-10-02Updated 2024-09-16Assigner: php

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.

CWE-20

What to do

Fixed builds are available from AlmaLinux, Alpine, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have 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

88Fixed
3Fix pending
54Will not fix

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
Ubuntu 20.04php7.4Fixed7.4.3-4ubuntu2.4UBUNTU-CVE-2020-7070
Ubuntu 18.04php7.2Fixed7.2.24-0ubuntu0.18.04.7UBUNTU-CVE-2020-7070
Ubuntu 16.04php7.0Fixed7.0.33-0ubuntu0.16.04.16UBUNTU-CVE-2020-7070
Ubuntu 14.04php5Fix pending5.5.9+dfsg-1ubuntu4.29+esm13 (Ubuntu Pro)UBUNTU-CVE-2020-7070
Red Hat Enterprise Linux 8apcu-panelFixed
Fix deferred
0:5.1.18-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8libzipFixed
Fix deferred
0:1.6.1-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8libzip-develFixed
Fix deferred
0:1.6.1-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8libzip-toolsFixed
Fix deferred
0:1.6.1-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8phpFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-bcmathFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-cliFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-commonFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-dbaFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-dbgFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-develFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-embeddedFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-enchantFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-ffiFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-fpmFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-gdFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-gmpFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-intlFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-jsonFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-ldapFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-mbstringFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-mysqlndFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-odbcFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-opcacheFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-pdoFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-pearFixed
Fix deferred
1:1.10.12-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8php-pecl-apcuFixed
Fix deferred
0:5.1.18-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8php-pecl-apcu-develFixed
Fix deferred
0:5.1.18-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8php-pecl-rrdFixed
Fix deferred
0:2.0.1-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8php-pecl-xdebugFixed
Fix deferred
0:2.9.5-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8php-pecl-xdebug3Fix pending
Fix deferred
Red Hat Enterprise Linux 8php-pecl-zipFixed
Fix deferred
0:1.18.2-1.module+el8.3.0+6678+b09f589eRHSA-2021:4213
Red Hat Enterprise Linux 8php-pgsqlFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-processFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-recodeFix pending
Fix deferred
Red Hat Enterprise Linux 8php-snmpFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-soapFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-xmlFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 8php-xmlrpcFixed
Fix deferred
0:7.4.19-1.module+el8.5.0+11143+cc873159RHSA-2021:4213
Red Hat Enterprise Linux 7phpWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-bcmathWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-cliWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-dbaWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-embeddedWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-enchantWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-fpmWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-gdWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-intlWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-ldapWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-mbstringWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-mysqlWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-mysqlndWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-odbcWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-pdoWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-pgsqlWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-processWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-pspellWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-recodeWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-snmpWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-soapWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-xmlWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-xmlrpcWill not fix
Out of support scope
Red Hat Enterprise Linux 6phpWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-bcmathWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-cliWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-dbaWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-embeddedWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-enchantWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-fpmWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-gdWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-imapWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-intlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-ldapWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-mbstringWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-mysqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-odbcWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-pdoWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-pgsqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-processWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-pspellWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-recodeWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-snmpWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-soapWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-tidyWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-xmlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-xmlrpcWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-ztsWill not fix
Out of support scope
Red Hat Enterprise Linux 5phpWill not fix
Out of support scope
Red Hat Enterprise Linux 5php53Will not fix
Out of support scope
AlmaLinux 8apcu-panelFixed5.1.18-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux 8libzipFixed1.6.1-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux 8libzip-develFixed1.6.1-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux 8libzip-toolsFixed1.6.1-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux 8phpFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-bcmathFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-cliFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-commonFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-dbaFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-dbgFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-develFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-embeddedFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-enchantFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-ffiFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-fpmFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-gdFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-gmpFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-intlFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-jsonFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-ldapFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-mbstringFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-mysqlndFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-odbcFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-opcacheFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-pdoFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-pearFixed1:1.10.12-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux 8php-pecl-apcuFixed5.1.18-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux 8php-pecl-apcu-develFixed5.1.18-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux 8php-pecl-rrdFixed2.0.1-1.module_el8.3.0+2009+b272fdefALSA-2021:4213
AlmaLinux 8php-pecl-xdebugFixed2.9.5-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux 8php-pecl-zipFixed1.18.2-1.module_el8.6.0+2750+78feabcbALSA-2021:4213
AlmaLinux 8php-pgsqlFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-processFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-snmpFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-soapFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-xmlFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
AlmaLinux 8php-xmlrpcFixed7.4.19-3.module_el8.6.0+2976+8b9a0d08ALSA-2021:4213
Rocky Linux 8libzipFixed0:1.6.1-1.module+el8.4.0+415+e936cba3RLSA-2021:4213
Rocky Linux 8phpFixed0:7.4.19-1.module+el8.5.0+696+61e7c9baRLSA-2021:4213
Rocky Linux 8php-pearFixed1:1.10.12-1.module+el8.4.0+415+e936cba3RLSA-2021:4213
Rocky Linux 8php-pecl-apcuFixed0:5.1.18-1.module+el8.6.0+789+2130c178RLSA-2021:4213
Rocky Linux 8php-pecl-rrdFixed0:2.0.1-1.module+el8.4.0+414+2e7afcddRLSA-2021:4213
Rocky Linux 8php-pecl-xdebugFixed0:2.9.5-1.module+el8.4.0+415+e936cba3RLSA-2021:4213
Rocky Linux 8php-pecl-zipFixed0:1.18.2-1.module+el8.4.0+415+e936cba3RLSA-2021:4213
Alpine Linux 3.15php7Fixed7.4.11-r0ALPINE-CVE-2020-7070
Alpine Linux 3.14php7Fixed7.4.11-r0ALPINE-CVE-2020-7070
Alpine Linux 3.13php7Fixed7.4.11-r0ALPINE-CVE-2020-7070
Alpine Linux 3.12php7Fixed7.3.23-r0ALPINE-CVE-2020-7070

What the vendor says

As published in the CVE record by php, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

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.