CVE-2018-20852
published medium CVSS 3.1 · 4.3python: Cookie domain check returns incorrect results
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2020-1432 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | python-psycopg2-doc | Advisory build | 2.7.5-7.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| Debian | jessie | python2.7 | Advisory build | 2.7.9-2+deb8u4 | DLA-1906-1 |
| Oracle Linux | 6 | pythoni686 | Advisory build | 0:2.6.6-68.0.2.el6_10 | ELSA-2019-4877 |
| AlmaLinux | 8 | python2-Cython | Advisory build | 0.28.1-7.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-PyMySQL | Advisory build | 0.8.0-10.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-attrs | Advisory build | 17.4.0-10.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
Show 94 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | python2-chardet | Advisory build | 3.0.4-10.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-coverage | Advisory build | 4.5.1-4.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-dns | Advisory build | 1.15.0-10.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-docs | Advisory build | 2.7.16-2.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-docs-info | Advisory build | 2.7.16-2.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-docutils | Advisory build | 0.14-12.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-funcsigs | Advisory build | 1.0.2-13.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-idna | Advisory build | 2.5-7.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-ipaddress | Advisory build | 1.0.18-6.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-markupsafe | Advisory build | 0.23-19.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-mock | Advisory build | 2.0.0-13.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-pluggy | Advisory build | 0.6.0-8.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-psycopg2 | Advisory build | 2.7.5-7.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-psycopg2-debug | Advisory build | 2.7.5-7.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-psycopg2-tests | Advisory build | 2.7.5-7.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-py | Advisory build | 1.5.3-6.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-pysocks | Advisory build | 1.6.8-6.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-pytest | Advisory build | 3.4.2-13.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-pytest-mock | Advisory build | 1.9.0-4.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-pytz | Advisory build | 2017.2-12.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-pyyaml | Advisory build | 3.12-16.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-requests | Advisory build | 2.20.0-3.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-rpm-macros | Advisory build | 3-38.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| AlmaLinux | 8 | python2-setuptools_scm | Advisory build | 1.15.7-6.module_el8.6.0+2781+fed64c13 | ALSA-2020:1605 |
| Debian | jessie | python3.4 | Advisory build | 3.4.2-1+deb8u6 | DLA-1889-1 |
| Debian | stretch | python2.7 | Advisory build | 2.7.13-2+deb9u4 | DLA-2337-1 |
| Debian | stretch | python3.5 | Advisory build | 3.5.3-1+deb9u2 | DLA-2280-1 |
| Oracle Linux | 6 | pythonx86_64 | Advisory build | 0:2.6.6-68.0.2.el6_10 | ELSA-2019-4877 |
| Oracle Linux | 6 | python-develi686 | Advisory build | 0:2.6.6-68.0.2.el6_10 | ELSA-2019-4877 |
| Oracle Linux | 6 | python-develx86_64 | Advisory build | 0:2.6.6-68.0.2.el6_10 | ELSA-2019-4877 |
| Oracle Linux | 6 | python-libsi686 | Advisory build | 0:2.6.6-68.0.2.el6_10 | ELSA-2019-4877 |
| Oracle Linux | 6 | python-libsx86_64 | Advisory build | 0:2.6.6-68.0.2.el6_10 | ELSA-2019-4877 |
| Oracle Linux | 6 | python-testi686 | Advisory build | 0:2.6.6-68.0.2.el6_10 | ELSA-2019-4877 |
| Oracle Linux | 6 | python-testx86_64 | Advisory build | 0:2.6.6-68.0.2.el6_10 | ELSA-2019-4877 |
| Oracle Linux | 6 | python-toolsi686 | Advisory build | 0:2.6.6-68.0.2.el6_10 | ELSA-2019-4877 |
| Oracle Linux | 6 | python-toolsx86_64 | Advisory build | 0:2.6.6-68.0.2.el6_10 | ELSA-2019-4877 |
| Oracle Linux | 6 | tkinteri686 | Advisory build | 0:2.6.6-68.0.2.el6_10 | ELSA-2019-4877 |
| Oracle Linux | 6 | tkinterx86_64 | Advisory build | 0:2.6.6-68.0.2.el6_10 | ELSA-2019-4877 |
| Oracle Linux | 7 | pythonaarch64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4876 |
| Oracle Linux | 7 | pythonaarch64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4884 |
| Oracle Linux | 7 | pythonaarch64 | Advisory build | 0:2.7.5-88.0.1.el7 | ELSA-2020-1131 |
| Oracle Linux | 7 | pythonx86_64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4876 |
| Oracle Linux | 7 | pythonx86_64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4884 |
| Oracle Linux | 7 | pythonx86_64 | Advisory build | 0:2.7.5-88.0.1.el7 | ELSA-2020-1131 |
| Oracle Linux | 7 | python-debugaarch64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4876 |
| Oracle Linux | 7 | python-debugaarch64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4884 |
| Oracle Linux | 7 | python-debugaarch64 | Advisory build | 0:2.7.5-88.0.1.el7 | ELSA-2020-1131 |
| Oracle Linux | 7 | python-debugx86_64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4876 |
| Oracle Linux | 7 | python-debugx86_64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4884 |
| Oracle Linux | 7 | python-debugx86_64 | Advisory build | 0:2.7.5-88.0.1.el7 | ELSA-2020-1131 |
| Oracle Linux | 7 | python-develaarch64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4876 |
| Oracle Linux | 7 | python-develaarch64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4884 |
| Oracle Linux | 7 | python-develaarch64 | Advisory build | 0:2.7.5-88.0.1.el7 | ELSA-2020-1131 |
| Oracle Linux | 7 | python-develx86_64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4876 |
| Oracle Linux | 7 | python-develx86_64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4884 |
| Oracle Linux | 7 | python-develx86_64 | Advisory build | 0:2.7.5-88.0.1.el7 | ELSA-2020-1131 |
| Oracle Linux | 7 | python-libsaarch64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4876 |
| Oracle Linux | 7 | python-libsaarch64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4884 |
| Oracle Linux | 7 | python-libsaarch64 | Advisory build | 0:2.7.5-88.0.1.el7 | ELSA-2020-1131 |
| Oracle Linux | 7 | python-libsx86_64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4876 |
| Oracle Linux | 7 | python-libsx86_64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4884 |
| Oracle Linux | 7 | python-libsx86_64 | Advisory build | 0:2.7.5-88.0.1.el7 | ELSA-2020-1131 |
| Oracle Linux | 7 | python-testaarch64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4876 |
| Oracle Linux | 7 | python-testaarch64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4884 |
| Oracle Linux | 7 | python-testaarch64 | Advisory build | 0:2.7.5-88.0.1.el7 | ELSA-2020-1131 |
| Oracle Linux | 7 | python-testx86_64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4876 |
| Oracle Linux | 7 | python-testx86_64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4884 |
| Oracle Linux | 7 | python-testx86_64 | Advisory build | 0:2.7.5-88.0.1.el7 | ELSA-2020-1131 |
| Oracle Linux | 7 | python-toolsaarch64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4876 |
| Oracle Linux | 7 | python-toolsaarch64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4884 |
| Oracle Linux | 7 | python-toolsaarch64 | Advisory build | 0:2.7.5-88.0.1.el7 | ELSA-2020-1131 |
| Oracle Linux | 7 | python-toolsx86_64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4876 |
| Oracle Linux | 7 | python-toolsx86_64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4884 |
| Oracle Linux | 7 | python-toolsx86_64 | Advisory build | 0:2.7.5-88.0.1.el7 | ELSA-2020-1131 |
| Oracle Linux | 7 | python3aarch64 | Advisory build | 0:3.6.8-13.0.1.el7 | ELSA-2020-1132 |
| Oracle Linux | 7 | python3x86_64 | Advisory build | 0:3.6.8-13.0.1.el7 | ELSA-2020-1132 |
| Oracle Linux | 7 | python3-debugaarch64 | Advisory build | 0:3.6.8-13.0.1.el7 | ELSA-2020-1132 |
| Oracle Linux | 7 | python3-debugx86_64 | Advisory build | 0:3.6.8-13.0.1.el7 | ELSA-2020-1132 |
| Oracle Linux | 7 | python3-develaarch64 | Advisory build | 0:3.6.8-13.0.1.el7 | ELSA-2020-1132 |
| Oracle Linux | 7 | python3-develx86_64 | Advisory build | 0:3.6.8-13.0.1.el7 | ELSA-2020-1132 |
| Oracle Linux | 7 | python3-idleaarch64 | Advisory build | 0:3.6.8-13.0.1.el7 | ELSA-2020-1132 |
| Oracle Linux | 7 | python3-idlex86_64 | Advisory build | 0:3.6.8-13.0.1.el7 | ELSA-2020-1132 |
| Oracle Linux | 7 | python3-libsaarch64 | Advisory build | 0:3.6.8-13.0.1.el7 | ELSA-2020-1132 |
| Oracle Linux | 7 | python3-libsx86_64 | Advisory build | 0:3.6.8-13.0.1.el7 | ELSA-2020-1132 |
| Oracle Linux | 7 | python3-testaarch64 | Advisory build | 0:3.6.8-13.0.1.el7 | ELSA-2020-1132 |
| Oracle Linux | 7 | python3-testx86_64 | Advisory build | 0:3.6.8-13.0.1.el7 | ELSA-2020-1132 |
| Oracle Linux | 7 | python3-tkinteraarch64 | Advisory build | 0:3.6.8-13.0.1.el7 | ELSA-2020-1132 |
| Oracle Linux | 7 | python3-tkinterx86_64 | Advisory build | 0:3.6.8-13.0.1.el7 | ELSA-2020-1132 |
| Oracle Linux | 7 | tkinteraarch64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4876 |
| Oracle Linux | 7 | tkinteraarch64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4884 |
| Oracle Linux | 7 | tkinteraarch64 | Advisory build | 0:2.7.5-88.0.1.el7 | ELSA-2020-1131 |
| Oracle Linux | 7 | tkinterx86_64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4876 |
| Oracle Linux | 7 | tkinterx86_64 | Advisory build | 0:2.7.5-86.0.3.el7 | ELSA-2019-4884 |
| Oracle Linux | 7 | tkinterx86_64 | Advisory build | 0:2.7.5-88.0.1.el7 | ELSA-2020-1131 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.3 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
2- n/a
- CWE-20 CWE-20 Improper Input Validation
References
18- openSUSE-SU-2019:1988 http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00071.html
- openSUSE-SU-2019:1989 http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00074.html
- openSUSE-SU-2020:0086 http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html
- RHSA-2019:3725 https://access.redhat.com/errata/RHSA-2019:3725
- RHSA-2019:3948 https://access.redhat.com/errata/RHSA-2019:3948
- https://bugs.python.org/issue35121
- [debian-lts-announce] 20190817 [SECURITY] [DLA 1889-1] python3.4 security update https://lists.debian.org/debian-lts-announce/2019/08/msg00022.html
- [debian-lts-announce] 20190831 [SECURITY] [DLA 1906-1] python2.7 security update https://lists.debian.org/debian-lts-announce/2019/08/msg00040.html
- [debian-lts-announce] 20200715 [SECURITY] [DLA 2280-1] python3.5 security update https://lists.debian.org/debian-lts-announce/2020/07/msg00011.html
- [debian-lts-announce] 20200822 [SECURITY] [DLA 2337-1] python2.7 security update https://lists.debian.org/debian-lts-announce/2020/08/msg00034.html
- FEDORA-2019-758824a3ff https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/COATURTCY7G67AYI6UDV5B2JZTBCKIDX/
- FEDORA-2019-0d3fcae639 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K7HNVIFMETMFWWWUNTB72KYJYXCZOS5V/
- FEDORA-2019-74ba24605e https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZBTGPBUABGXZ7WH7677OEM3NSP6ZEA76/
- https://python-security.readthedocs.io/vuln/cookie-domain-check.html
- GLSA-202003-26 https://security.gentoo.org/glsa/202003-26
- USN-4127-1 https://usn.ubuntu.com/4127-1/
- USN-4127-2 https://usn.ubuntu.com/4127-2/
- https://www.oracle.com/security-alerts/cpuapr2020.html
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a4449d3e03b28ff0b25d2787caca2a0ee4cf6296b2568028fbe3fde352642d2d
- Ingested
- 07 Oct 2026, 22:32:03 UTC
- Source record
- Official CVE record