CVE-2018-20852
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
02 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
03 Exploitation and scoring
- Exploitation
- Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
- SSVC decision
- ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
- AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
- Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
- EPSS probability
- 3.66% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 89.3% of scored records. A rank, not a probability.
- NVD base score
- 5.3 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- NVD analysis status
- Modified. NVD last modified this record on 2026-10-07.
- Red Hat severity
- Moderate. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2019-07-13 20:29Z7 YR AGO
- Last updated
- 2026-10-07 18:24Z21 DAYS AGO
- Reserved
- 2019-07-13
- Assigning CNA
- mitre
- Record state
- PUBLISHED
- Severity
- Medium (CVSS 4.3)
- CNA CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- Weaknesses
- CWE-20Improper Input ValidationClass
- Data version
- 5.2
- Document digest
- 553cb4a6c89da98edaeb478786e7bdfe3b8dc0639f09a8f773463a779622eb0a
05 Affected products
06 References
- bugs.python.orghttps://bugs.python.org/issue35121
- python-security.readthedocs.iohttps://python-security.readthedocs.io/vuln/cookie-domain-check.html
- lists.debian.org[debian-lts-announce] 20190817 [SECURITY] [DLA 1889-1] python3.4 security updatehttps://lists.debian.org/debian-lts-announce/2019/08/msg00022.html
- lists.opensuse.orgopenSUSE-SU-2019:1988http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00071.html
- lists.opensuse.orgopenSUSE-SU-2019:1989http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00074.html
- lists.debian.org[debian-lts-announce] 20190831 [SECURITY] [DLA 1906-1] python2.7 security updatehttps://lists.debian.org/debian-lts-announce/2019/08/msg00040.html
- usn.ubuntu.comUSN-4127-2https://usn.ubuntu.com/4127-2/
- usn.ubuntu.comUSN-4127-1https://usn.ubuntu.com/4127-1/
- access.redhat.comRHSA-2019:3725https://access.redhat.com/errata/RHSA-2019:3725
- lists.fedoraproject.orgFEDORA-2019-0d3fcae639https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K7HNVIFMETMFWWWUNTB72KYJYXCZOS5V/
- lists.fedoraproject.orgFEDORA-2019-74ba24605ehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZBTGPBUABGXZ7WH7677OEM3NSP6ZEA76/
- lists.fedoraproject.orgFEDORA-2019-758824a3ffhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/COATURTCY7G67AYI6UDV5B2JZTBCKIDX/
- access.redhat.comRHSA-2019:3948https://access.redhat.com/errata/RHSA-2019:3948
- lists.opensuse.orgopenSUSE-SU-2020:0086http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html
- security.gentoo.orgGLSA-202003-26https://security.gentoo.org/glsa/202003-26
- www.oracle.comhttps://www.oracle.com/security-alerts/cpuapr2020.html
- lists.debian.org[debian-lts-announce] 20200715 [SECURITY] [DLA 2280-1] python3.5 security updatehttps://lists.debian.org/debian-lts-announce/2020/07/msg00011.html
- lists.debian.org[debian-lts-announce] 20200822 [SECURITY] [DLA 2337-1] python2.7 security updatehttps://lists.debian.org/debian-lts-announce/2020/08/msg00034.html
07 Fixed in
AlmaLinux 8
- python-psycopg2-doc Fixed in 2.7.5-7.module_el8.6.0+2781+fed64c13
- python2-Cython Fixed in 0.28.1-7.module_el8.6.0+2781+fed64c13
- python2-PyMySQL Fixed in 0.8.0-10.module_el8.6.0+2781+fed64c13
- python2-attrs Fixed in 17.4.0-10.module_el8.6.0+2781+fed64c13
- python2-chardet Fixed in 3.0.4-10.module_el8.6.0+2781+fed64c13
- python2-coverage Fixed in 4.5.1-4.module_el8.6.0+2781+fed64c13
- python2-dns Fixed in 1.15.0-10.module_el8.6.0+2781+fed64c13
- python2-docs Fixed in 2.7.16-2.module_el8.6.0+2781+fed64c13
- python2-docs-info Fixed in 2.7.16-2.module_el8.6.0+2781+fed64c13
- python2-docutils Fixed in 0.14-12.module_el8.6.0+2781+fed64c13
- python2-funcsigs Fixed in 1.0.2-13.module_el8.6.0+2781+fed64c13
- python2-idna Fixed in 2.5-7.module_el8.6.0+2781+fed64c13
- python2-ipaddress Fixed in 1.0.18-6.module_el8.6.0+2781+fed64c13
- python2-markupsafe Fixed in 0.23-19.module_el8.6.0+2781+fed64c13
- python2-mock Fixed in 2.0.0-13.module_el8.6.0+2781+fed64c13
- python2-pluggy Fixed in 0.6.0-8.module_el8.6.0+2781+fed64c13
- python2-psycopg2 Fixed in 2.7.5-7.module_el8.6.0+2781+fed64c13
- python2-psycopg2-debug Fixed in 2.7.5-7.module_el8.6.0+2781+fed64c13
- python2-psycopg2-tests Fixed in 2.7.5-7.module_el8.6.0+2781+fed64c13
- python2-py Fixed in 1.5.3-6.module_el8.6.0+2781+fed64c13
- python2-pysocks Fixed in 1.6.8-6.module_el8.6.0+2781+fed64c13
- python2-pytest Fixed in 3.4.2-13.module_el8.6.0+2781+fed64c13
- python2-pytest-mock Fixed in 1.9.0-4.module_el8.6.0+2781+fed64c13
- python2-pytz Fixed in 2017.2-12.module_el8.6.0+2781+fed64c13
- python2-pyyaml Fixed in 3.12-16.module_el8.6.0+2781+fed64c13
- python2-requests Fixed in 2.20.0-3.module_el8.6.0+2781+fed64c13
- python2-rpm-macros Fixed in 3-38.module_el8.6.0+2781+fed64c13
- python2-setuptools_scm Fixed in 1.15.7-6.module_el8.6.0+2781+fed64c13
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 8
- python-psycopg2-doc Fixed in 2.7.5-7.module_el8.6.0+2781+fed64c13
- python2-Cython Fixed in 0.28.1-7.module_el8.6.0+2781+fed64c13
- python2-PyMySQL Fixed in 0.8.0-10.module_el8.6.0+2781+fed64c13
- python2-attrs Fixed in 17.4.0-10.module_el8.6.0+2781+fed64c13
- python2-chardet Fixed in 3.0.4-10.module_el8.6.0+2781+fed64c13
- python2-coverage Fixed in 4.5.1-4.module_el8.6.0+2781+fed64c13
- python2-dns Fixed in 1.15.0-10.module_el8.6.0+2781+fed64c13
- python2-docs Fixed in 2.7.16-2.module_el8.6.0+2781+fed64c13
- python2-docs-info Fixed in 2.7.16-2.module_el8.6.0+2781+fed64c13
- python2-docutils Fixed in 0.14-12.module_el8.6.0+2781+fed64c13
- python2-funcsigs Fixed in 1.0.2-13.module_el8.6.0+2781+fed64c13
- python2-idna Fixed in 2.5-7.module_el8.6.0+2781+fed64c13
- python2-ipaddress Fixed in 1.0.18-6.module_el8.6.0+2781+fed64c13
- python2-markupsafe Fixed in 0.23-19.module_el8.6.0+2781+fed64c13
- python2-mock Fixed in 2.0.0-13.module_el8.6.0+2781+fed64c13
- python2-pluggy Fixed in 0.6.0-8.module_el8.6.0+2781+fed64c13
- python2-psycopg2 Fixed in 2.7.5-7.module_el8.6.0+2781+fed64c13
- python2-psycopg2-debug Fixed in 2.7.5-7.module_el8.6.0+2781+fed64c13
- python2-psycopg2-tests Fixed in 2.7.5-7.module_el8.6.0+2781+fed64c13
- python2-py Fixed in 1.5.3-6.module_el8.6.0+2781+fed64c13
- python2-pysocks Fixed in 1.6.8-6.module_el8.6.0+2781+fed64c13
- python2-pytest Fixed in 3.4.2-13.module_el8.6.0+2781+fed64c13
- python2-pytest-mock Fixed in 1.9.0-4.module_el8.6.0+2781+fed64c13
- python2-pytz Fixed in 2017.2-12.module_el8.6.0+2781+fed64c13
- python2-pyyaml Fixed in 3.12-16.module_el8.6.0+2781+fed64c13
- python2-requests Fixed in 2.20.0-3.module_el8.6.0+2781+fed64c13
- python2-rpm-macros Fixed in 3-38.module_el8.6.0+2781+fed64c13
- python2-setuptools_scm Fixed in 1.15.7-6.module_el8.6.0+2781+fed64c13
Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Debian 11
- python2.7 Fixed in 2.7.16-3
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 16.04 LTS
- python2.7 Fixed in 2.7.12-1ubuntu0~16.04.8
- python3.5 Fixed in 3.5.2-2ubuntu0~16.04.8
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 18.04 LTS
- python2.7 Fixed in 2.7.15-4ubuntu4~18.04.1
- python3.6 Fixed in 3.6.8-1~18.04.2
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 14.04 LTS
- python2.7 Fixed in 2.7.6-8ubuntu0.6+esm2Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
- python3.4 Fixed in 3.4.3-1ubuntu1~14.04.7+esm2Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
- python3.5 Fixed in 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.