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

Published Sep 29, 2020
·
Updated

Fixed bug (PHP parses encoded cookie names so malicious Host- cookies can be sent). (CVE-2020-7070)

Other sources

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.

Launchpad

Affected Software

19 affected componentsFixes available
PHP PHP<7.2.34
7.2.34
PHP PHP>=7.2.0<7.2.34
PHP PHP>=7.3.0<7.3.23
PHP PHP>=7.4.0<7.4.11
Fedoraproject Fedora=31
Fedoraproject Fedora=32
Fedoraproject Fedora=33
Debian Debian Linux=9.0
Debian Debian Linux=10.0
openSUSE Leap=15.1
openSUSE Leap=15.2
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=20.04
NetApp Clustered Data ONTAP
Tenable Tenable.Sc<5.19.0
debian/php7.4
7.4.33-1+deb11u57.4.33-1+deb11u10

Event History

Oct 1, 2020
CVE Published
via PHP·12:00 AM
Oct 2, 2020
CVE Published
via MITRE·02:14 PM
Data Sourced
via MITRE·02:14 PM
DescriptionSeverityWeakness
Feb 24, 2026
Data Sourced
via Ubuntu·12:24 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·12:25 AM
DescriptionAffected Software
Data Sourced
via Launchpad·12:25 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID?

The vulnerability ID is CVE-2020-7070.

2

What is the title of the vulnerability?

The title of the vulnerability is 'Fixed bug (PHP parses encoded cookie names so malicious `__Host-` cookies can be sent).

3

What is the severity of CVE-2020-7070?

The severity of CVE-2020-7070 is medium with a severity value of 5.3.

4

Which versions of PHP are affected by CVE-2020-7070?

PHP versions 7.2.x below 7.2.34, 7.3.x below 7.3.23, and 7.4.x below 7.4.11 are affected by CVE-2020-7070.

5

How can I fix CVE-2020-7070?

To fix CVE-2020-7070, update PHP to version 7.2.34, 7.3.23, or 7.4.11.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203