{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2018-20852","published":"2019-07-13T21:15:10.377000Z","last_modified":"2026-10-07T19:17:11.553000Z","status":"Modified","cvss":{"version":"3.1","score":4.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","primary":false},"auth":false,"cwes":["CWE-20"],"cpes":[{"criteria":"cpe:2.3:a:python:python:*:*:*:*:*:*:*:*","part":"a","vendor":"python","product":"python","version_start_including":"2.0","version_end_including":"2.7.16"},{"criteria":"cpe:2.3:a:python:python:*:*:*:*:*:*:*:*","part":"a","vendor":"python","product":"python","version_start_including":"3.0.0","version_end_excluding":"3.4.10"},{"criteria":"cpe:2.3:a:python:python:*:*:*:*:*:*:*:*","part":"a","vendor":"python","product":"python","version_start_including":"3.5.0","version_end_excluding":"3.5.7"},{"criteria":"cpe:2.3:a:python:python:*:*:*:*:*:*:*:*","part":"a","vendor":"python","product":"python","version_start_including":"3.6.0","version_end_excluding":"3.6.9"},{"criteria":"cpe:2.3:a:python:python:*:*:*:*:*:*:*:*","part":"a","vendor":"python","product":"python","version_start_including":"3.7.0","version_end_excluding":"3.7.3"}],"cpes_truncated":false,"vendors":["python"],"products":["python/python"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.03668,"percentile":0.90434,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":41,"links":{"html_es":"/es/cve/CVE-2018-20852/","html_en":"/en/cve/CVE-2018-20852/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-20852","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-20852"},"untrusted":{"vendor_name":"Python","product_name":"Python","desc_en":"http.cookiejar.DefaultPolicy.domain_return_ok in Lib/http/cookiejar.py in Python before 3.7.3 does not correctly validate the domain: it can be tricked into sending existing cookies to the wrong server. An attacker may abuse this flaw by using a server with a hostname that has another valid hostname as a suffix (e.g., pythonicexample.com to steal cookies for example.com). When a program uses http.cookiejar.DefaultPolicy and tries to do an HTTP connection to an attacker-controlled server, existing cookies can be leaked to the attacker. This affects 2.x through 2.7.16, 3.x before 3.4.10, 3.5.x before 3.5.7, 3.6.x before 3.6.9, and 3.7.x before 3.7.3.","affected":[],"references":[{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00071.html","tags":[]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00074.html","tags":[]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html","tags":[]},{"url":"https://access.redhat.com/errata/RHSA-2019:3725","tags":[]},{"url":"https://access.redhat.com/errata/RHSA-2019:3948","tags":[]},{"url":"https://bugs.python.org/issue35121","tags":["Exploit","Issue Tracking","Vendor Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/08/msg00022.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2019/08/msg00040.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2020/07/msg00011.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2020/08/msg00034.html","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/COATURTCY7G67AYI6UDV5B2JZTBCKIDX/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K7HNVIFMETMFWWWUNTB72KYJYXCZOS5V/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZBTGPBUABGXZ7WH7677OEM3NSP6ZEA76/","tags":[]},{"url":"https://python-security.readthedocs.io/vuln/cookie-domain-check.html","tags":["Vendor Advisory"]},{"url":"https://security.gentoo.org/glsa/202003-26","tags":[]},{"url":"https://usn.ubuntu.com/4127-1/","tags":[]},{"url":"https://usn.ubuntu.com/4127-2/","tags":[]},{"url":"https://www.oracle.com/security-alerts/cpuapr2020.html","tags":[]}]}}