{"id":"CVE-2020-7070","published":"2020-10-02T14:14:45Z","modified":"2024-09-16T16:28:36Z","title":"PHP parses encoded cookie names so malicious `__Host-` cookies can be sent","vendor":"PHP","product":"PHP","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.05029,"percentile":0.92464,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://hackerone.com/reports/895727","tags":["x_refsource_MISC"]},{"url":"https://bugs.php.net/bug.php?id=79699","tags":["x_refsource_MISC"]},{"url":"http://cve.circl.lu/cve/CVE-2020-8184","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RRU57N3OSYZPOMFWPRDNVH7EMYOTSZ66/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/10/msg00008.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7EVDN7D3IB4EAI4D3ZOM2OJKQ5SD7K4E/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/P2J3ZZDHCSX65T5QWV4AHBN7MOJXBEKG/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00045.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://usn.ubuntu.com/4583-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00067.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://security.gentoo.org/glsa/202012-16","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://www.debian.org/security/2021/dsa-4856","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://security.netapp.com/advisory/ntap-20201016-0001/","tags":["x_refsource_CONFIRM"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["x_refsource_MISC"]},{"url":"https://www.tenable.com/security/tns-2021-14","tags":["x_refsource_CONFIRM"]}],"priority":{"score":21.5,"factors":[{"name":"EPSS percentile","points":18.49},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"php","affectedVersions":[{"vendor":"PHP Group","product":"PHP","versions":[">= 7.3.x, < 7.3.23",">= 7.4.x, < 7.4.11",">= 7.2.x, < 7.2.34"]}],"summary":{"text":"PHP's cookie handling, in versions 7.2.x below 7.2.34, 7.3.x below 7.3.23 and 7.4.x below 7.4.11, URL-decodes cookie names during processing of incoming HTTP requests, so cookies whose encoded names decode to a __Host prefix are treated as if they carried that prefix. An attacker who can get a victim's browser to send a crafted cookie, for example by setting it from a sibling subdomain or through a user action such as following a link, can forge a cookie that appears to be a secure __Host- cookie.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:08Z"},"euvd":{"id":"EUVD-2020-28204","exploited":false,"provenance":"source"},"lineage":{"parents":[{"from":"CVE-2020-8184","to":"CVE-2020-7070","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"See also CVE-2020-8184 for more information.","from":"CVE.org","in":"CVE-2020-7070"}]}]}}