CVE-2018-20852

Severity: Moderate
Published: 2018-10-31

Fix Status by Distribution

Fixed in 6 of 27 tracked Linux releases

Fix evidence last checked: 2026-11-24 20:00 UTC

Get alerted when your releases are fixed
Fixed in:
No fix evidence found:
AlmaLinux 10
AlmaLinux 9
Debian 11 (Bullseye)
Debian 12 (Bookworm)
Debian 13 (Trixie)
Oracle Linux 10
Oracle Linux 9
Red Hat Enterprise Linux 10
Red Hat Enterprise Linux 7 (Extended Lifecycle Support)
Red Hat Enterprise Linux 9
Rocky Linux 10
Rocky Linux 9
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server 15 SP7
SUSE Linux Enterprise Server 16
Ubuntu 24.04 LTS (Noble Numbat)
Ubuntu 25.04 (Plucky Puffin)
Ubuntu 25.10 (Questing Quokka)
Ubuntu 26.04 LTS (Resolute Raccoon)
Ubuntu 26.10 (Stonking Stingray)
Interested in being alerted when these distributions have fixes? Set up an alert.

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.

Exploit evidence

Public exploit evidence reported

Last checked: 2026-10-07 21:10 UTC

  • No exploitation evidence · CISA Coordinator (Assessed 2026-10-07 18:24 UTC)

  • Exploit reference · af854a3a-2127-422b-91ae-364da2661108 · View external evidence (Observed 2026-10-07 21:10 UTC)

NVD evidence for CVE-2018-20852 is reported, not independently verified by Package Alert. It does not establish exploit reliability or applicability to a particular package or environment.