CVE-2020-7070

published 2 Oct 2020 · updated 16 Sep 2024

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

4.3MediumCVSS 4.3EPSS 5%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 5%. Fixed in PHP 7.2.34, PHP 7.3.23 and PHP 7.4.11.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
PHP GroupPHP>=7.2.x <7.2.34, >=7.3.x <7.3.23, >=7.4.x <7.4.117.2.34, 7.3.23, 7.4.11

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in PHP, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2020-7070 severity on Zeptric[![CVE-2020-7070](https://zeptric.io/badge/cve/CVE-2020-7070.svg)](https://zeptric.io/cve/CVE-2020-7070)