Amazon Linux 2 Security Advisory: ALAS2-2020-1432
Advisory Released Date: 2020-06-03
Advisory Updated Date: 2025-09-23
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.(CVE-2018-20852)
Affected Packages:
python
Note:
This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.
Issue Correction:
Run yum update python or yum update --advisory ALAS2-2020-1432 to update your system.
aarch64:
python-2.7.18-1.amzn2.aarch64
python-libs-2.7.18-1.amzn2.aarch64
python-devel-2.7.18-1.amzn2.aarch64
python-tools-2.7.18-1.amzn2.aarch64
tkinter-2.7.18-1.amzn2.aarch64
python-test-2.7.18-1.amzn2.aarch64
python-debug-2.7.18-1.amzn2.aarch64
python-debuginfo-2.7.18-1.amzn2.aarch64
i686:
python-2.7.18-1.amzn2.i686
python-libs-2.7.18-1.amzn2.i686
python-devel-2.7.18-1.amzn2.i686
python-tools-2.7.18-1.amzn2.i686
tkinter-2.7.18-1.amzn2.i686
python-test-2.7.18-1.amzn2.i686
python-debug-2.7.18-1.amzn2.i686
python-debuginfo-2.7.18-1.amzn2.i686
src:
python-2.7.18-1.amzn2.src
x86_64:
python-2.7.18-1.amzn2.x86_64
python-libs-2.7.18-1.amzn2.x86_64
python-devel-2.7.18-1.amzn2.x86_64
python-tools-2.7.18-1.amzn2.x86_64
tkinter-2.7.18-1.amzn2.x86_64
python-test-2.7.18-1.amzn2.x86_64
python-debug-2.7.18-1.amzn2.x86_64
python-debuginfo-2.7.18-1.amzn2.x86_64
2025-09-23: CVE-2020-8492 was removed from this advisory.