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.
CVE-2018-20852
Score 5.3 from GitHub Security Advisory published 2022-05-24. NVD baseline CVSS 5.3; sources differ by 0.0.
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v3
- 5.3
- EG Score
- 5.3(medium)
- EG Risk
- 30(Track)EG Risk 30/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity53% × 45%Exploitation4% × 40%Automatability30% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 4%
- EPSS %ILE
- 90%
- KEV
- Not listed
Published
July 13, 2019
Last Modified
November 21, 2024
References (36)
- cve@mitrehttp://lists.opensuse.org/opensuse-security-announce/2019-08/msg00071.html
- cve@mitrehttp://lists.opensuse.org/opensuse-security-announce/2019-08/msg00074.html
- cve@mitrehttp://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html
- cve@mitrehttps://access.redhat.com/errata/RHSA-2019:3725
- cve@mitrehttps://access.redhat.com/errata/RHSA-2019:3948
- cve@mitrehttps://bugs.python.org/issue35121
- cve@mitrehttps://lists.debian.org/debian-lts-announce/2019/08/msg00022.html
- cve@mitrehttps://lists.debian.org/debian-lts-announce/2019/08/msg00040.html
- cve@mitrehttps://lists.debian.org/debian-lts-announce/2020/07/msg00011.html
- cve@mitrehttps://lists.debian.org/debian-lts-announce/2020/08/msg00034.html
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/COATURTCY7G67AYI6UDV5B2JZTBCKIDX/
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K7HNVIFMETMFWWWUNTB72KYJYXCZOS5V/
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZBTGPBUABGXZ7WH7677OEM3NSP6ZEA76/
- cve@mitrehttps://python-security.readthedocs.io/vuln/cookie-domain-check.html
- cve@mitrehttps://security.gentoo.org/glsa/202003-26
Vendor Advisories for CVE-2018-20852(4)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2020:1605Red Hat Product SecurityMedium
Red Hat Security Advisory: python27:2.7 security, bug fix, and enhancement update
- RHBA-2020:1539Red Hat Product SecurityCritical
Red Hat Bug Fix Advisory: Red Hat Ansible Tower 3.5.6-1 - RHEL7 Container
- RHBA-2020:1540Red Hat Product SecurityCritical
Red Hat Bug Fix Advisory: Red Hat Ansible Tower 3.6.4-1 - RHEL7 Container
- RHSA-2019:3725Red Hat Product SecurityMedium
Red Hat Security Advisory: rh-python36-python security, bug fix, and enhancement update
Patch Availability(11)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | python3.5-venv (3.5.2-2ubuntu0~16.04.8) @ xenial | 2026-05-27 | ubuntu |
| ubuntu | python3.4-venv (3.4.3-1ubuntu1~14.04.7+esm2) @ trusty | 2026-05-27 | ubuntu |
| ubuntu | python3.9-venv (3.9.5-3ubuntu0~20.04.1+esm2) @ focal | 2026-05-27 | ubuntu |
| redhat | python3-0:3.6.8-23.el8 | 2020-04-28 | redhat |
| redhat | python27:2.7-8020020200117110429.90f98d4f | 2020-04-28 | redhat |
| redhat | ansible-tower-35/ansible-tower:3.5.6-1 | 2020-04-22 | redhat |
| redhat | ansible-tower-36/ansible-tower:3.6.4-1 | 2020-04-22 | redhat |
| redhat | python3-0:3.6.8-13.el7 | 2020-03-31 | redhat |
| redhat | python-0:2.7.5-88.el7 | 2020-03-31 | redhat |
| redhat | python27-python-0:2.7.17-2.el7 | 2019-11-25 | redhat |
| redhat | rh-python36-python-0:3.6.9-2.el7 | 2019-11-06 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(5 across 3 ecosystems)
Debian:8(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python2.7 | 2.7.9-2, 2.7.9-2+deb8u1, 2.7.9-2+deb8u2, 2.7.9-2+deb8u3 | 2.7.9-2+deb8u4 | — |
| python3.4 | 3.4.2-1 ... 3.4.2-1+deb8u5 (6 versions) | 3.4.2-1+deb8u6 | — |
Debian:9(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python2.7 | 2.7.13-2, 2.7.13-2+deb9u1, 2.7.13-2+deb9u2, 2.7.13-2+deb9u3 | 2.7.13-2+deb9u4 | — |
| python3.5 | 3.5.3-1, 3.5.3-1+deb9u1 | 3.5.3-1+deb9u2 | — |
Debian:11(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python2.7 | — | 2.7.16-3 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(7)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Red HatRHSA-2019:3948MODERATE2018-10-31
RHSA-2019:3948 — Moderate
- Red HatRHSA-2020:1131MODERATE2018-10-31
RHSA-2020:1131 — Moderate
- Red HatRHSA-2020:1132MODERATE2018-10-31
RHSA-2020:1132 — Moderate
- Red HatRHSA-2020:1764MODERATE2018-10-31
RHSA-2020:1764 — Moderate
- UbuntuUSN-4127-1MEDIUM
Python vulnerabilities
- UbuntuUSN-4127-2MEDIUM
Python vulnerabilities
- UbuntuUSN-6891-1MEDIUM
Python vulnerabilities
Data Freshness Timeline
(refreshed 6× in last 7d / 24× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 148 total refreshes for this CVE.
- 2026-09-18 19:22 UTCEPSS rescore
- 2026-09-17 19:22 UTCEPSS rescore
- 2026-09-16 05:06 UTCEPSS rescore
- 2026-09-15 03:05 UTCEPSS rescore
- 2026-09-13 16:42 UTCEPSS rescore
- 2026-09-12 14:56 UTCEPSS rescore
- 2026-09-11 14:47 UTCEPSS rescore
- 2026-09-11 09:32 UTCEPSS rescore
- 2026-09-08 08:49 UTCOSV refresh
- 2026-09-07 15:57 UTCEPSS rescore
- 2026-09-06 13:43 UTCEPSS rescore
- 2026-09-05 15:24 UTCEPSS rescore
- 2026-09-04 13:56 UTCEPSS rescore
- 2026-09-04 05:02 UTCEPSS rescore
- 2026-09-02 14:07 UTCEPSS rescore
- 2026-09-01 13:49 UTCEPSS rescore
- 2026-09-01 03:32 UTCEPSS rescore
- 2026-08-28 21:36 UTCEPSS rescore
- 2026-08-27 14:21 UTCEPSS rescore
- 2026-08-26 14:42 UTCEPSS rescore
- 2026-08-25 13:44 UTCEPSS rescore
- 2026-08-21 23:45 UTCEPSS rescore
- 2026-08-21 19:14 UTCOSV refresh
- 2026-08-20 22:51 UTCEPSS rescore
- 2026-08-19 17:00 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-08-18 13:44 UTCEPSS rescore
- 2026-08-17 13:43 UTCEPSS rescore
- 2026-08-16 14:51 UTCEPSS rescore
- 2026-08-16 02:10 UTCEPSS rescore
- 2026-08-15 01:26 UTCEPSS rescore
- 2026-08-13 21:56 UTCEPSS rescore
- 2026-08-12 13:46 UTCEPSS rescore
- 2026-08-09 13:43 UTCEPSS rescore
- 2026-08-08 16:32 UTCEPSS rescore
- 2026-08-07 16:23 UTCEPSS rescore
- 2026-08-06 13:42 UTCEPSS rescore
- 2026-08-06 02:54 UTCOSV refresh
- 2026-08-05 19:13 UTCEPSS rescore
- 2026-08-04 15:05 UTCEPSS rescore
- 2026-08-02 02:23 UTCEPSS rescore
- 2026-08-01 04:12 UTCEPSS rescore
- 2026-07-30 16:24 UTCEPSS rescore
- 2026-07-30 01:27 UTCEPSS rescore
- 2026-07-28 15:32 UTCEPSS rescore
- 2026-07-25 14:14 UTCEPSS rescore
- 2026-07-24 14:14 UTCEPSS rescore
- 2026-07-24 14:14 UTCEPSS rescore
- 2026-07-23 14:15 UTCEPSS rescore
- 2026-07-23 01:35 UTCEG score recompute
- 2026-07-22 22:15 UTCEG score recompute
- 2026-07-22 14:05 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-20 13:02 UTCOSV refresh
- 2026-07-19 14:28 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 01:56 UTCEPSS rescore
- 2026-07-15 01:56 UTCEPSS rescore
- 2026-07-13 22:27 UTCEPSS rescore
- 2026-07-13 22:26 UTCEPSS rescore
- 2026-07-12 05:43 UTCEPSS rescore
- 2026-07-11 08:24 UTCEPSS rescore
- 2026-07-09 19:06 UTCEPSS rescore
- 2026-07-08 15:11 UTCEPSS rescore
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-06 16:24 UTCEPSS rescore
- 2026-07-06 16:24 UTCEPSS rescore
- 2026-07-06 02:20 UTCEPSS rescore
- 2026-07-05 02:27 UTCEPSS rescore
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-03 07:56 UTCOSV refresh
- 2026-07-02 16:54 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
Related CVEs(same vendor + same CWE)
Same vendor
10 shownredhat
- CVE-2001-0825EG 10.0HIGH
- CVE-2001-1009EG 10.0EPSS p93HIGH
- CVE-2001-0554EG 10.0EPSS p99HIGH
- CVE-2001-1162EG 10.0EPSS p96HIGH
- CVE-2001-0414EG 10.0EPSS p100HIGH
- CVE-2001-0191EG 10.0EPSS p92HIGH
- CVE-2001-0301EG 10.0EPSS p91HIGH
- CVE-2001-0197EG 10.0EPSS p96HIGH
- CVE-2001-0233EG 10.0EPSS p96HIGH
- CVE-2001-0010EG 10.0EPSS p98HIGH
Same CWE
10 shownCWE-20
- CVE-2005-0050EG 10.0EPSS p99HIGH
- CVE-2004-1019EG 10.0EPSS p94HIGH
- CVE-2004-0840EG 10.0EPSS p98HIGH
- CVE-2003-1425EG 10.0EPSS p96HIGH
- CVE-2003-1487EG 10.0EPSS p95HIGH
- CVE-2002-1874EG 10.0HIGH
- CVE-2002-2236EG 10.0EPSS p92HIGH
- CVE-2002-2365EG 10.0HIGH
- CVE-2002-1358EG 10.0EPSS p93HIGH
- CVE-2002-1359EG 10.0EPSS p100HIGH
Frequently asked(5)
What is CVE-2018-20852?
When was CVE-2018-20852 disclosed?
Is CVE-2018-20852 actively exploited?
What is the CVSS score of CVE-2018-20852?
How do I remediate CVE-2018-20852?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2018-20852
Is Your Infrastructure Affected by CVE-2018-20852?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.