CVE-2018-20852

MEDIUM
New! CVE Severity Now Using CVSS v3

The calculated severity for CVEs has been updated to use CVSS v3 by default. CVEs that do not have a CVSS v3 score will fall back CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

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.

References

http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00071.html

http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00074.html

http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html

https://access.redhat.com/errata/RHSA-2019:3725

https://access.redhat.com/errata/RHSA-2019:3948

https://bugs.python.org/issue35121

https://lists.debian.org/debian-lts-announce/2019/08/msg00022.html

https://lists.debian.org/debian-lts-announce/2019/08/msg00040.html

https://lists.debian.org/debian-lts-announce/2020/07/msg00011.html

https://lists.debian.org/debian-lts-announce/2020/08/msg00034.html

https://lists.fedoraproject.org/archives/list/[email protected]/message/COATURTCY7G67AYI6UDV5B2JZTBCKIDX/

https://lists.fedoraproject.org/archives/list/[email protected]/message/K7HNVIFMETMFWWWUNTB72KYJYXCZOS5V/

https://lists.fedoraproject.org/archives/list/[email protected]/message/ZBTGPBUABGXZ7WH7677OEM3NSP6ZEA76/

https://python-security.readthedocs.io/vuln/cookie-domain-check.html

https://security.gentoo.org/glsa/202003-26

https://usn.ubuntu.com/4127-1/

https://usn.ubuntu.com/4127-2/

https://www.oracle.com/security-alerts/cpuapr2020.html

Details

Source: MITRE

Published: 2019-07-13

Updated: 2020-08-22

Type: CWE-20

Risk Information

CVSS v2

Base Score: 5

Vector: AV:N/AC:L/Au:N/C:P/I:N/A:N

Impact Score: 2.9

Exploitability Score: 10

Severity: MEDIUM

CVSS v3

Base Score: 5.3

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Impact Score: 1.4

Exploitability Score: 3.9

Severity: MEDIUM

Tenable Plugins

View all (51 total)

IDNameProductFamilySeverity
150669SUSE SLES11 Security Update : python (SUSE-SU-2019:14142-1)NessusSuSE Local Security Checks
critical
146007CentOS 8 : python3 (CESA-2020:1764)NessusCentOS Local Security Checks
high
145889CentOS 8 : python27:2.7 (CESA-2020:1605)NessusCentOS Local Security Checks
high
143954NewStart CGSL CORE 5.05 / MAIN 5.05 : python Multiple Vulnerabilities (NS-SA-2020-0094)NessusNewStart CGSL Local Security Checks
high
143922NewStart CGSL CORE 5.05 / MAIN 5.05 : python3 Multiple Vulnerabilities (NS-SA-2020-0089)NessusNewStart CGSL Local Security Checks
high
143918NewStart CGSL CORE 5.04 / MAIN 5.04 : python Multiple Vulnerabilities (NS-SA-2020-0059)NessusNewStart CGSL Local Security Checks
high
143782SUSE SLES12 Security Update : python3 (SUSE-SU-2020:2699-1)NessusSuSE Local Security Checks
high
140169OracleVM 3.4 : python (OVMSA-2020-0036)NessusOracleVM Local Security Checks
medium
139757Debian DLA-2337-1 : python2.7 security updateNessusDebian Local Security Checks
critical
138767NewStart CGSL MAIN 6.01 : python3 Multiple Vulnerabilities (NS-SA-2020-0030)NessusNewStart CGSL Local Security Checks
high
138529Debian DLA-2280-1 : python3.5 security updateNessusDebian Local Security Checks
critical
137098Amazon Linux AMI : python27 (ALAS-2020-1375)NessusAmazon Linux Local Security Checks
medium
137089Amazon Linux 2 : python (ALAS-2020-1432)NessusAmazon Linux Local Security Checks
medium
136049RHEL 8 : python3 (RHSA-2020:1764)NessusRed Hat Local Security Checks
high
136044RHEL 8 : python27:2.7 (RHSA-2020:1605)NessusRed Hat Local Security Checks
high
135831Scientific Linux Security Update : python on SL7.x x86_64 (20200407)NessusScientific Linux Local Security Checks
high
135830Scientific Linux Security Update : python3 on SL7.x x86_64 (20200407)NessusScientific Linux Local Security Checks
high
135344CentOS 7 : python3 (CESA-2020:1132)NessusCentOS Local Security Checks
high
135343CentOS 7 : python (CESA-2020:1131)NessusCentOS Local Security Checks
high
135059RHEL 7 : python (RHSA-2020:1131)NessusRed Hat Local Security Checks
high
135056RHEL 7 : python3 (RHSA-2020:1132)NessusRed Hat Local Security Checks
high
134603GLSA-202003-26 : Python: Multiple vulnerabilitiesNessusGentoo Local Security Checks
critical
134501EulerOS Virtualization for ARM 64 3.0.2.0 : python (EulerOS-SA-2020-1212)NessusHuawei Local Security Checks
high
133448SUSE SLES12 Security Update : python36 (SUSE-SU-2020:0302-1)NessusSuSE Local Security Checks
critical
133259SUSE SLED15 / SLES15 Security Update : python (SUSE-SU-2020:0234-1) (BEAST) (httpoxy)NessusSuSE Local Security Checks
critical
133172openSUSE Security Update : python3 (openSUSE-2020-86) (BEAST) (httpoxy)NessusSuSE Local Security Checks
critical
133036SUSE SLED15 / SLES15 Security Update : python3 (SUSE-SU-2020:0114-1) (BEAST) (httpoxy)NessusSuSE Local Security Checks
critical
132802EulerOS Virtualization for ARM 64 3.0.5.0 : python3 (EulerOS-SA-2020-1048)NessusHuawei Local Security Checks
high
132798EulerOS Virtualization for ARM 64 3.0.5.0 : python2 (EulerOS-SA-2020-1044)NessusHuawei Local Security Checks
high
131596EulerOS 2.0 SP2 : python (EulerOS-SA-2019-2442)NessusHuawei Local Security Checks
high
130824EulerOS 2.0 SP8 : python3 (EulerOS-SA-2019-2115)NessusHuawei Local Security Checks
high
130823EulerOS 2.0 SP8 : python2 (EulerOS-SA-2019-2114)NessusHuawei Local Security Checks
high
130790Fedora 29 : python2 / python2-docs (2019-758824a3ff)NessusFedora Local Security Checks
high
130789Fedora 30 : python2 / python2-docs (2019-74ba24605e)NessusFedora Local Security Checks
high
130776Fedora 31 : python2 / python2-docs (2019-0d3fcae639)NessusFedora Local Security Checks
high
130721EulerOS 2.0 SP3 : python (EulerOS-SA-2019-2259)NessusHuawei Local Security Checks
medium
130687EulerOS 2.0 SP5 : python (EulerOS-SA-2019-2225)NessusHuawei Local Security Checks
high
130361SUSE SLED12 / SLES12 Security Update : python3 (SUSE-SU-2019:2798-1)NessusSuSE Local Security Checks
high
128721Photon OS 2.0: Python3 PHSA-2019-2.0-0171NessusPhotonOS Local Security Checks
medium
128720Photon OS 2.0: Python2 PHSA-2019-2.0-0171NessusPhotonOS Local Security Checks
medium
128631Ubuntu 16.04 LTS / 18.04 LTS / 19.04 : python2.7, python3.5, python3.6, python3.7 vulnerabilities (USN-4127-1)NessusUbuntu Local Security Checks
critical
128426Debian DLA-1906-1 : python2.7 security updateNessusDebian Local Security Checks
medium
128172Photon OS 1.0: Python3 PHSA-2019-1.0-0246NessusPhotonOS Local Security Checks
medium
128171Photon OS 1.0: Python2 PHSA-2019-1.0-0246NessusPhotonOS Local Security Checks
medium
128158Photon OS 3.0: Python2 PHSA-2019-3.0-0024NessusPhotonOS Local Security Checks
medium
128140openSUSE Security Update : python (openSUSE-2019-1989)NessusSuSE Local Security Checks
medium
128139openSUSE Security Update : python (openSUSE-2019-1988)NessusSuSE Local Security Checks
medium
127925Debian DLA-1889-1 : python3.4 security updateNessusDebian Local Security Checks
medium
127838SUSE SLED15 / SLES15 Security Update : python (SUSE-SU-2019:2114-1)NessusSuSE Local Security Checks
medium
127783SUSE SLED12 / SLES12 Security Update : python (SUSE-SU-2019:2091-1)NessusSuSE Local Security Checks
critical
127766SUSE SLED15 / SLES15 Security Update : python3 (SUSE-SU-2019:2050-1)NessusSuSE Local Security Checks
critical