Read the docs
TI-2018-14814 Aliases CVE-2018-20852GHSA-p5ff-6x75-2mgp

http.cookiejar.DefaultPolicy.domain_return_ok in Lib/http/cookiejar.py in Python before…

Priority LOW 26CWE-20Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
Low · None · None
Fix status
Partial Red Hat: 19 fixed, 2 without a fix

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.03668 89th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial Red Hat: 6 advisoriesRed Hat: 19 fixed, 2 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
  • — Vendor— Affected all versions Fixed in — No fix listed CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*2.0 – 2.7.16; 3.0.0 to before 3.4.10; 3.5.0 to before 3.5.7; 3.6.0 to before 3.6.9; 3.7.0 to before 3.7.3Vulnerablepython-pillow
  • cpe:2.3:a:python:python:*:*:*:*:*:*:*:* Versions 2.0 – 2.7.16; 3.0.0 to before 3.4.10; 3.5.0 to before 3.5.7; 3.6.0 to before 3.6.9; 3.7.0 to before 3.7.3 Vulnerable ·python-pillow

Remediation

Red Hat 6 advisories

  • RHSA-2020:1605 Released 2020-04-28 · Red Hat rating Moderate
    python27:2.7 security, bug fix, and enhancement update
    • Red Hat Enterprise Linux AppStream (v. 8) Cython-0.28.1-7.module+el8.1.0+3111+de3f2d8e.src::python27:2.7, PyYAML-3.12-16.module+el8.1.0+3111+de3f2d8e.src::python27:2.7, babel-2.5.1-9.module+el8.1.0+3111+de3f2d8e.noarch::python27:2.7 +47
  • RHSA-2020:1764 Released 2020-04-28 · Red Hat rating Moderate
    python3 security and bug fix update
    • Red Hat Enterprise Linux AppStream (v. 8) platform-python-3.6.8-23.el8, platform-python-debug-3.6.8-23.el8, platform-python-devel-3.6.8-23.el8 +3
    • Red Hat Enterprise Linux BaseOS (v. 8) platform-python-3.6.8-23.el8, python3-3.6.8-23.el8, python3-libs-3.6.8-23.el8 +1
  • RHSA-2020:1131 Released 2020-03-31 · Red Hat rating Moderate
    python security update
    • Red Hat Enterprise Linux Client (v. 7) python-2.7.5-88.el7, python-libs-2.7.5-88.el7
    • Red Hat Enterprise Linux Client Optional (v. 7) python-debug-2.7.5-88.el7, python-devel-2.7.5-88.el7, python-test-2.7.5-88.el7 +2
    • Red Hat Enterprise Linux ComputeNode (v. 7) python-2.7.5-88.el7, python-devel-2.7.5-88.el7, python-libs-2.7.5-88.el7
    • Red Hat Enterprise Linux ComputeNode Optional (v. 7) python-debug-2.7.5-88.el7, python-test-2.7.5-88.el7, python-tools-2.7.5-88.el7 +1
    • Red Hat Enterprise Linux Server (v. 7) python-2.7.5-88.el7, python-devel-2.7.5-88.el7, python-libs-2.7.5-88.el7 +1
    • Red Hat Enterprise Linux Server Optional (v. 7) python-debug-2.7.5-88.el7, python-test-2.7.5-88.el7, python-tools-2.7.5-88.el7 +1
    • Red Hat Enterprise Linux Workstation (v. 7) python-2.7.5-88.el7, python-devel-2.7.5-88.el7, python-libs-2.7.5-88.el7
    • Red Hat Enterprise Linux Workstation Optional (v. 7) python-debug-2.7.5-88.el7, python-test-2.7.5-88.el7, python-tools-2.7.5-88.el7 +1
Show 3 more Red Hat advisories
  • RHSA-2020:1132 Released 2020-03-31 · Red Hat rating Moderate
    python3 security update
    • Red Hat Enterprise Linux Client (v. 7) python3-3.6.8-13.el7, python3-libs-3.6.8-13.el7
    • Red Hat Enterprise Linux Client Optional (v. 7) python3-3.6.8-13.el7, python3-debug-3.6.8-13.el7, python3-devel-3.6.8-13.el7 +3
    • Red Hat Enterprise Linux ComputeNode (v. 7) python3-3.6.8-13.el7, python3-libs-3.6.8-13.el7
    • Red Hat Enterprise Linux ComputeNode Optional (v. 7) python3-3.6.8-13.el7, python3-debug-3.6.8-13.el7, python3-devel-3.6.8-13.el7 +3
    • Red Hat Enterprise Linux Server (v. 7) python3-3.6.8-13.el7, python3-libs-3.6.8-13.el7, python3-libs-3.6.8-13.el7.ppc
    • Red Hat Enterprise Linux Server Optional (v. 7) python3-3.6.8-13.el7, python3-3.6.8-13.el7.ppc, python3-debug-3.6.8-13.el7 +9
    • Red Hat Enterprise Linux Workstation (v. 7) python3-3.6.8-13.el7, python3-libs-3.6.8-13.el7
    • Red Hat Enterprise Linux Workstation Optional (v. 7) python3-3.6.8-13.el7, python3-debug-3.6.8-13.el7, python3-devel-3.6.8-13.el7 +3
  • RHSA-2019:3948 Released 2019-11-25 · Red Hat rating Moderate
    python27-python security, bug fix, and enhancement update
    • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) python27-python-2.7.17-2.el6, python27-python-debug-2.7.17-2.el6, python27-python-devel-2.7.17-2.el6 +4
    • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) python27-python-2.7.17-2.el7, python27-python-debug-2.7.17-2.el7, python27-python-devel-2.7.17-2.el7 +4
    • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) python27-python-2.7.17-2.el7, python27-python-debug-2.7.17-2.el7, python27-python-devel-2.7.17-2.el7 +4
    • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) python27-python-2.7.17-2.el7, python27-python-debug-2.7.17-2.el7, python27-python-devel-2.7.17-2.el7 +4
    • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) python27-python-2.7.17-2.el7, python27-python-debug-2.7.17-2.el7, python27-python-devel-2.7.17-2.el7 +4
    • Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) python27-python-2.7.17-2.el6, python27-python-debug-2.7.17-2.el6, python27-python-devel-2.7.17-2.el6 +4
    • Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) python27-python-2.7.17-2.el7, python27-python-debug-2.7.17-2.el7, python27-python-devel-2.7.17-2.el7 +4
  • RHSA-2019:3725 Released 2019-11-06 · Red Hat rating Moderate
    rh-python36-python security, bug fix, and enhancement update
    • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-python36-python-3.6.9-2.el6, rh-python36-python-debug-3.6.9-2.el6, rh-python36-python-devel-3.6.9-2.el6 +4
    • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-python36-python-3.6.9-2.el7, rh-python36-python-debug-3.6.9-2.el7, rh-python36-python-devel-3.6.9-2.el7 +4
    • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-python36-python-3.6.9-2.el7, rh-python36-python-debug-3.6.9-2.el7, rh-python36-python-devel-3.6.9-2.el7 +4
    • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-python36-python-3.6.9-2.el7, rh-python36-python-debug-3.6.9-2.el7, rh-python36-python-devel-3.6.9-2.el7 +4
    • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) rh-python36-python-3.6.9-2.el7, rh-python36-python-debug-3.6.9-2.el7, rh-python36-python-devel-3.6.9-2.el7 +4
    • Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-python36-python-3.6.9-2.el6, rh-python36-python-debug-3.6.9-2.el6, rh-python36-python-devel-3.6.9-2.el6 +4
    • Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-python36-python-3.6.9-2.el7, rh-python36-python-debug-3.6.9-2.el7, rh-python36-python-devel-3.6.9-2.el7 +4

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 5AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Ansible Tower 3.5 for RHEL 7 ServerFixed—
Red Hat Ansible Tower 3.6 for RHEL 7Fixed—
Red Hat Enterprise Linux AppStream (v. 8)Fixed RHSA-2020:1605, RHSA-2020:1764
Red Hat Enterprise Linux BaseOS (v. 8)Fixed RHSA-2020:1764
Red Hat Enterprise Linux Client (v. 7)Fixed RHSA-2020:1131, RHSA-2020:1132
Red Hat Enterprise Linux Client Optional (v. 7)Fixed RHSA-2020:1131, RHSA-2020:1132
Red Hat Enterprise Linux ComputeNode (v. 7)Fixed RHSA-2020:1131, RHSA-2020:1132
Red Hat Enterprise Linux ComputeNode Optional (v. 7)Fixed RHSA-2020:1131, RHSA-2020:1132
Red Hat Enterprise Linux Server (v. 7)Fixed RHSA-2020:1131, RHSA-2020:1132
Red Hat Enterprise Linux Server Optional (v. 7)Fixed RHSA-2020:1131, RHSA-2020:1132
Red Hat Enterprise Linux Workstation (v. 7)Fixed RHSA-2020:1131, RHSA-2020:1132
Red Hat Enterprise Linux Workstation Optional (v. 7)Fixed RHSA-2020:1131, RHSA-2020:1132
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6)Fixed RHSA-2019:3725, RHSA-2019:3948
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)Fixed RHSA-2019:3725, RHSA-2019:3948
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5)Fixed RHSA-2019:3725, RHSA-2019:3948
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6)Fixed RHSA-2019:3725, RHSA-2019:3948
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7)Fixed RHSA-2019:3725, RHSA-2019:3948
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6)Fixed RHSA-2019:3725, RHSA-2019:3948
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)Fixed RHSA-2019:3725, RHSA-2019:3948
Not affected: 2 products
  • Red Hat Enterprise Linux 8
  • Red Hat Quay 3

Timeline

  1. 2026-10-02 Threatist record created from CVE-2018-20852
  2. 2026-10-03 Alias added: GHSA-p5ff-6x75-2mgp
  3. 2026-10-07 CVSS score added · CISA ADP
  4. 2026-10-07 Weakness changed · CISA ADP
  5. 2026-10-07 CISA SSVC decision points changed

References

  • TI-2016-01993 The DES and Triple DES ciphers, as used in the TLS, SSH, and IPSec protocols and other… CVSS 3.1HIGH 7.5
  • TI-2022-24108 An XML External Entity (XXE) issue was discovered in Python through 3.9.1. CVSS 3.1CRITICAL 9.8
  • TI-2022-17508 The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and… CVSS 3.1CRITICAL 9.8
  • TI-2021-02254 Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c… CVSS 3.1CRITICAL 9.8
  • TI-2007-04413 Directory traversal vulnerability in the (1) extract and (2) extractall functions in the… CVSS 3.1CRITICAL 9.8
  • TI-2014-00217 OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly… CVSS 3.1HIGH 7.4
See all 139 →

Sources