CVE-2018-20852: python Improper Input Validation
Vulnerability summary
CVE-2018-20852 is a medium (CVSS 5.3) Improper Input Validation vulnerability in python. EPSS estimates a 3.67% chance of exploitation in the next 30 days, higher than 89.6% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 4.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 23 · Related 15Timeline
- 13-07-2019PublishedVulnerability first disclosed.
- 07-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 4 sources · 3 versions- NVDNIST4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- OSV · UbuntuEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS trend
Probability
3.67%
Chance of exploitation in the next 30 days
Percentile
90%
Versus all other CVEs
30-day change
Decrease -0.21 pp
From 3.88% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (bugs.python.org)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Suse8 products
- python-base&distro=SUSE Linux Enterprise Module for Basesystem 15< 2.7.14-7.17.1
- python-base&distro=SUSE Linux Enterprise Module for Basesystem 15 SP1< 2.7.14-7.17.1
- python-base&distro=SUSE Linux Enterprise Module for Python 2 15 SP1< 2.7.14-7.17.1
- python&distro=SUSE Linux Enterprise Module for Basesystem 15< 2.7.14-7.17.1
- python&distro=SUSE Linux Enterprise Module for Basesystem 15 SP1< 2.7.14-7.17.1
Opensuse4 products
- python-base&distro=openSUSE Leap 15.1< 2.7.14-lp151.10.7.1
- python-doc&distro=openSUSE Leap 15.1< 2.7.14-lp151.10.7.1
- python&distro=openSUSE Leap 15.0< 2.7.14-lp150.6.17.1
- python&distro=openSUSE Leap 15.1< 2.7.14-lp151.10.7.1
Ubuntu4 products
- python2.7< 2.7.6-8ubuntu0.6+esm2 | < 2.7.12-1ubuntu0~16.04.8 | < 2.7.15-4ubuntu4~18.04.1
- python3.4< 3.4.3-1ubuntu1~14.04.7+esm2
- python3.5< 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1 | < 3.5.2-2ubuntu0~16.04.8
- python3.6< 3.6.8-1~18.04.2
Debian2 products
- python2.7< 2.7.16-3 | < 2.7.9-2+deb8u4
- python3.4< 3.4.2-1+deb8u6
Python1 product
- python≥ 2.0, ≤ 2.7.16 | ≥ 3.0.0, < 3.4.10 | ≥ 3.5.0, < 3.5.7 | ≥ 3.6.0, < 3.6.9 | ≥ 3.7.0, < 3.7.3
5 vendors · 19 products
References
29 linksShow all 29 references
- www.oracle.com/security-alerts/cpuapr2020.htmlX Refsource MISC
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory