Skip to content
Heist/ feed
Back to feed
MediumFix available

python2.7, python3.4 and 2 more products — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2018-20852

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.

Products
python2.7, python3.4, python3.5, python3.6
Affected versions
2.7.10-4ubuntu1, 2.7.10-4ubuntu2, 2.7.11-2, 2.7.11-3, 2.7.11-4, 2.7.11-6, 2.7.11-7, 2.7.11-7ubuntu1, 2.7.12-1ubuntu0~16.04.1, 2.7.12-1ubuntu0~16.04.2, 2.7.12-1ubuntu0~16.04.3, 2.7.12-1ubuntu0~16.04.4, 2.7.12-1~16.04, 2.7.14-2ubuntu2, 2.7.14-4, 2.7.14-6, 2.7.14-7, 2.7.14-8, 2.7.15-4ubuntu4~18.04, 2.7.15~rc1-1, 2.7.15~rc1-1ubuntu0.1, 2.7.5-8ubuntu3, 2.7.5-8ubuntu4, 2.7.6-2, 2.7.6-2ubuntu1, 2.7.6-3, 2.7.6-3ubuntu1, 2.7.6-4, 2.7.6-4ubuntu1, 2.7.6-5, 2.7.6-7, 2.7.6-8, 2.7.6-8ubuntu0.2, 2.7.6-8ubuntu0.3, 2.7.6-8ubuntu0.4, 2.7.6-8ubuntu0.5, 3.4.0-1, 3.4.0-2ubuntu1, 3.4.0-2ubuntu1.1, 3.4.3-1ubuntu1~14.04.1, 3.4.3-1ubuntu1~14.04.3, 3.4.3-1ubuntu1~14.04.4, 3.4.3-1ubuntu1~14.04.5, 3.4.3-1ubuntu1~14.04.6, 3.4.3-1ubuntu1~14.04.7, 3.4~b1-0ubuntu3, 3.4~b1-4ubuntu4, 3.4~b1-4ubuntu6, 3.4~b1-5ubuntu2, 3.4~b2-1, 3.4~b3-1ubuntu1, 3.4~rc1-1build1, 3.4~rc2-1, 3.4~rc3-0ubuntu1, 3.5.0-3, 3.5.0-3ubuntu1, 3.5.1-1, 3.5.1-10, 3.5.1-2, 3.5.1-3, 3.5.1-5, 3.5.1-6ubuntu1, 3.5.1-6ubuntu2, 3.5.1-9ubuntu1, 3.5.1~rc1-2ubuntu1, 3.5.2-2ubuntu0~16.04.1, 3.5.2-2ubuntu0~16.04.2, 3.5.2-2ubuntu0~16.04.3, 3.5.2-2ubuntu0~16.04.4, 3.5.2-2ubuntu0~16.04.4~14.04.1, 3.5.2-2ubuntu0~16.04.5, 3.5.2-2~16.01, 3.5.2-2~16.04, 3.6.3-1ubuntu1, 3.6.4-1, 3.6.4-2, 3.6.4-3build1, 3.6.4-4, 3.6.4~rc1-1, 3.6.4~rc1-2, 3.6.5-3, 3.6.5~rc1-1, 3.6.6-1~18.04, 3.6.7-1~18.04, 3.6.8-1~18.04.1
Fixed versions
2.7.12-1ubuntu0~16.04.8, 2.7.15-4ubuntu4~18.04.1, 2.7.6-8ubuntu0.6+esm2, 3.4.3-1ubuntu1~14.04.7+esm2, 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1, 3.5.2-2ubuntu0~16.04.8, 3.6.8-1~18.04.2
CVEs
CVE-2018-20852
Confirmed fixed CVEs
Not specified
Updated in this feed
28 Oct 2026, 10:03 UTC · Revision 1

Source evidence

UBUNTU-CVE-2018-20852

core-osv · Original source

Published 13 Jul 2019, 00:00 UTC

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.

osv:UBUNTU-CVE-2018-20852

python2.7

Fixed versions: 2.7.6-8ubuntu0.6+esm2

python3.4

Fixed versions: 3.4.3-1ubuntu1~14.04.7+esm2

python3.5

Fixed versions: 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1

python2.7

Fixed versions: 2.7.12-1ubuntu0~16.04.8

python3.5

Fixed versions: 3.5.2-2ubuntu0~16.04.8

python2.7

Fixed versions: 2.7.15-4ubuntu4~18.04.1

python3.6

Fixed versions: 3.6.8-1~18.04.2

Complete source record
{
  "id": "0a110538bb930dcd20209b92b647ac57d0d76ff11700d61c2ea560e7c972e13e",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2018-20852",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2018-20852",
    "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.",
    "evidence": "osv:UBUNTU-CVE-2018-20852",
    "products": [
      {
        "name": {
          "value": "python2.7",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.7.6-8ubuntu0.6+esm2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "2.7.5-8ubuntu3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7.5-8ubuntu4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7.6-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7.6-2ubuntu1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7.6-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7.6-3ubuntu1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7.6-4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7.6-4ubuntu1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7.6-5",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7.6-7",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7.6-8",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7.6-8ubuntu0.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7.6-8ubuntu0.3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7.6-8ubuntu0.4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.7.6-8ubuntu0.5",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python3.4",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.4.3-1ubuntu1~14.04.7+esm2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "3.4~b1-0ubuntu3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4~b1-4ubuntu4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4~b1-4ubuntu6",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4~b1-5ubuntu2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4~b2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4~b3-1ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4~rc1-1build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4~rc2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4~rc3-0ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4.0-2ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4.0-2ubuntu1.1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4.3-1ubuntu1~14.04.1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4.3-1ubuntu1~14.04.3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4.3-1ubuntu1~14.04.4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4.3-1ubuntu1~14.04.5",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4.3-1ubuntu1~14.04.6",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4.3-1ubuntu1~14.04.7",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python3.5",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "3.5.2-2ubuntu0~16.04.4~14.04.1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python2.7",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.7.12-1ubuntu0~16.04.8",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "2.7.10-4ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.7.10-4ubuntu2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.7.11-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.7.11-3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.7.11-4",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.7.11-6",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.7.11-7",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.7.11-7ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.7.12-1~16.04",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.7.12-1ubuntu0~16.04.1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.7.12-1ubuntu0~16.04.2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.7.12-1ubuntu0~16.04.3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.7.12-1ubuntu0~16.04.4",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python3.5",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.5.2-2ubuntu0~16.04.8",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "3.5.0-3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.5.0-3ubuntu1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.5.1~rc1-2ubuntu1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.5.1-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.5.1-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.5.1-3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.5.1-5",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.5.1-6ubuntu1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.5.1-6ubuntu2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.5.1-9ubuntu1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.5.1-10",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.5.2-2~16.01",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.5.2-2~16.04",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.5.2-2ubuntu0~16.04.1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.5.2-2ubuntu0~16.04.2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.5.2-2ubuntu0~16.04.3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.5.2-2ubuntu0~16.04.4",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.5.2-2ubuntu0~16.04.5",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python2.7",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.7.15-4ubuntu4~18.04.1",
            "evidence": "/affected/5/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "2.7.14-2ubuntu2",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "2.7.14-4",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "2.7.14-6",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "2.7.14-7",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "2.7.14-8",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "2.7.15~rc1-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "2.7.15~rc1-1ubuntu0.1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "2.7.15-4ubuntu4~18.04",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python3.6",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.6.8-1~18.04.2",
            "evidence": "/affected/6/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "3.6.3-1ubuntu1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "3.6.4~rc1-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "3.6.4~rc1-2",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "3.6.4-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "3.6.4-2",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "3.6.4-3build1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "3.6.4-4",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "3.6.5~rc1-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "3.6.5-3",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "3.6.6-1~18.04",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "3.6.7-1~18.04",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "3.6.8-1~18.04.1",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2018-20852",
      "aliases": [
        "UBUNTU-CVE-2018-20852"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.7.6-8ubuntu0.6+esm2"
                }
              ]
            }
          ],
          "package": {
            "name": "python2.7",
            "purl": "pkg:deb/ubuntu/python2.7?arch=source&distro=trusty%2Fesm",
            "ecosystem": "Ubuntu:Pro:14.04:LTS"
          },
          "versions": [
            "2.7.5-8ubuntu3",
            "2.7.5-8ubuntu4",
            "2.7.6-2",
            "2.7.6-2ubuntu1",
            "2.7.6-3",
            "2.7.6-3ubuntu1",
            "2.7.6-4",
            "2.7.6-4ubuntu1",
            "2.7.6-5",
            "2.7.6-7",
            "2.7.6-8",
            "2.7.6-8ubuntu0.2",
            "2.7.6-8ubuntu0.3",
            "2.7.6-8ubuntu0.4",
            "2.7.6-8ubuntu0.5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20852.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "idle-python2.7",
                "binary_version": "2.7.6-8ubuntu0.6+esm2"
              },
              {
                "binary_name": "libpython2.7",
                "binary_version": "2.7.6-8ubuntu0.6+esm2"
              },
              {
                "binary_name": "libpython2.7-minimal",
                "binary_version": "2.7.6-8ubuntu0.6+esm2"
              },
              {
                "binary_name": "libpython2.7-stdlib",
                "binary_version": "2.7.6-8ubuntu0.6+esm2"
              },
              {
                "binary_name": "libpython2.7-testsuite",
                "binary_version": "2.7.6-8ubuntu0.6+esm2"
              },
              {
                "binary_name": "python2.7",
                "binary_version": "2.7.6-8ubuntu0.6+esm2"
              },
              {
                "binary_name": "python2.7-examples",
                "binary_version": "2.7.6-8ubuntu0.6+esm2"
              },
              {
                "binary_name": "python2.7-minimal",
                "binary_version": "2.7.6-8ubuntu0.6+esm2"
              }
            ],
            "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.4.3-1ubuntu1~14.04.7+esm2"
                }
              ]
            }
          ],
          "package": {
            "name": "python3.4",
            "purl": "pkg:deb/ubuntu/python3.4?arch=source&distro=trusty%2Fesm",
            "ecosystem": "Ubuntu:Pro:14.04:LTS"
          },
          "versions": [
            "3.4~b1-0ubuntu3",
            "3.4~b1-4ubuntu4",
            "3.4~b1-4ubuntu6",
            "3.4~b1-5ubuntu2",
            "3.4~b2-1",
            "3.4~b3-1ubuntu1",
            "3.4~rc1-1build1",
            "3.4~rc2-1",
            "3.4~rc3-0ubuntu1",
            "3.4.0-1",
            "3.4.0-2ubuntu1",
            "3.4.0-2ubuntu1.1",
            "3.4.3-1ubuntu1~14.04.1",
            "3.4.3-1ubuntu1~14.04.3",
            "3.4.3-1ubuntu1~14.04.4",
            "3.4.3-1ubuntu1~14.04.5",
            "3.4.3-1ubuntu1~14.04.6",
            "3.4.3-1ubuntu1~14.04.7"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20852.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "idle-python3.4",
                "binary_version": "3.4.3-1ubuntu1~14.04.7+esm2"
              },
              {
                "binary_name": "libpython3.4",
                "binary_version": "3.4.3-1ubuntu1~14.04.7+esm2"
              },
              {
                "binary_name": "libpython3.4-minimal",
                "binary_version": "3.4.3-1ubuntu1~14.04.7+esm2"
              },
              {
                "binary_name": "libpython3.4-stdlib",
                "binary_version": "3.4.3-1ubuntu1~14.04.7+esm2"
              },
              {
                "binary_name": "libpython3.4-testsuite",
                "binary_version": "3.4.3-1ubuntu1~14.04.7+esm2"
              },
              {
                "binary_name": "python3.4",
                "binary_version": "3.4.3-1ubuntu1~14.04.7+esm2"
              },
              {
                "binary_name": "python3.4-examples",
                "binary_version": "3.4.3-1ubuntu1~14.04.7+esm2"
              },
              {
                "binary_name": "python3.4-minimal",
                "binary_version": "3.4.3-1ubuntu1~14.04.7+esm2"
              },
              {
                "binary_name": "python3.4-venv",
                "binary_version": "3.4.3-1ubuntu1~14.04.7+esm2"
              }
            ],
            "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
                }
              ]
            }
          ],
          "package": {
            "name": "python3.5",
            "purl": "pkg:deb/ubuntu/python3.5?arch=source&distro=trusty%2Fesm",
            "ecosystem": "Ubuntu:Pro:14.04:LTS"
          },
          "versions": [
            "3.5.2-2ubuntu0~16.04.4~14.04.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20852.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "idle-python3.5",
                "binary_version": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
              },
              {
                "binary_name": "libpython3.5",
                "binary_version": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
              },
              {
                "binary_name": "libpython3.5-minimal",
                "binary_version": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
              },
              {
                "binary_name": "libpython3.5-stdlib",
                "binary_version": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
              },
              {
                "binary_name": "libpython3.5-testsuite",
                "binary_version": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
              },
              {
                "binary_name": "python3.5",
                "binary_version": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
              },
              {
                "binary_name": "python3.5-examples",
                "binary_version": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
              },
              {
                "binary_name": "python3.5-minimal",
                "binary_version": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
              },
              {
                "binary_name": "python3.5-venv",
                "binary_version": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
              }
            ],
            "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.7.12-1ubuntu0~16.04.8"
                }
              ]
            }
          ],
          "package": {
            "name": "python2.7",
            "purl": "pkg:deb/ubuntu/python2.7?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "2.7.10-4ubuntu1",
            "2.7.10-4ubuntu2",
            "2.7.11-2",
            "2.7.11-3",
            "2.7.11-4",
            "2.7.11-6",
            "2.7.11-7",
            "2.7.11-7ubuntu1",
            "2.7.12-1~16.04",
            "2.7.12-1ubuntu0~16.04.1",
            "2.7.12-1ubuntu0~16.04.2",
            "2.7.12-1ubuntu0~16.04.3",
            "2.7.12-1ubuntu0~16.04.4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20852.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "idle-python2.7",
                "binary_version": "2.7.12-1ubuntu0~16.04.8"
              },
              {
                "binary_name": "libpython2.7",
                "binary_version": "2.7.12-1ubuntu0~16.04.8"
              },
              {
                "binary_name": "libpython2.7-minimal",
                "binary_version": "2.7.12-1ubuntu0~16.04.8"
              },
              {
                "binary_name": "libpython2.7-stdlib",
                "binary_version": "2.7.12-1ubuntu0~16.04.8"
              },
              {
                "binary_name": "libpython2.7-testsuite",
                "binary_version": "2.7.12-1ubuntu0~16.04.8"
              },
              {
                "binary_name": "python2.7",
                "binary_version": "2.7.12-1ubuntu0~16.04.8"
              },
              {
                "binary_name": "python2.7-examples",
                "binary_version": "2.7.12-1ubuntu0~16.04.8"
              },
              {
                "binary_name": "python2.7-minimal",
                "binary_version": "2.7.12-1ubuntu0~16.04.8"
              }
            ],
            "availability": "No subscription required"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.5.2-2ubuntu0~16.04.8"
                }
              ]
            }
          ],
          "package": {
            "name": "python3.5",
            "purl": "pkg:deb/ubuntu/python3.5?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "3.5.0-3",
            "3.5.0-3ubuntu1",
            "3.5.1~rc1-2ubuntu1",
            "3.5.1-1",
            "3.5.1-2",
            "3.5.1-3",
            "3.5.1-5",
            "3.5.1-6ubuntu1",
            "3.5.1-6ubuntu2",
            "3.5.1-9ubuntu1",
            "3.5.1-10",
            "3.5.2-2~16.01",
            "3.5.2-2~16.04",
            "3.5.2-2ubuntu0~16.04.1",
            "3.5.2-2ubuntu0~16.04.2",
            "3.5.2-2ubuntu0~16.04.3",
            "3.5.2-2ubuntu0~16.04.4",
            "3.5.2-2ubuntu0~16.04.5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20852.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "idle-python3.5",
                "binary_version": "3.5.2-2ubuntu0~16.04.8"
              },
              {
                "binary_name": "libpython3.5",
                "binary_version": "3.5.2-2ubuntu0~16.04.8"
              },
              {
                "binary_name": "libpython3.5-minimal",
                "binary_version": "3.5.2-2ubuntu0~16.04.8"
              },
              {
                "binary_name": "libpython3.5-stdlib",
                "binary_version": "3.5.2-2ubuntu0~16.04.8"
              },
              {
                "binary_name": "libpython3.5-testsuite",
                "binary_version": "3.5.2-2ubuntu0~16.04.8"
              },
              {
                "binary_name": "python3.5",
                "binary_version": "3.5.2-2ubuntu0~16.04.8"
              },
              {
                "binary_name": "python3.5-examples",
                "binary_version": "3.5.2-2ubuntu0~16.04.8"
              },
              {
                "binary_name": "python3.5-minimal",
                "binary_version": "3.5.2-2ubuntu0~16.04.8"
              },
              {
                "binary_name": "python3.5-venv",
                "binary_version": "3.5.2-2ubuntu0~16.04.8"
              }
            ],
            "availability": "No subscription required"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.7.15-4ubuntu4~18.04.1"
                }
              ]
            }
          ],
          "package": {
            "name": "python2.7",
            "purl": "pkg:deb/ubuntu/python2.7?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "2.7.14-2ubuntu2",
            "2.7.14-4",
            "2.7.14-6",
            "2.7.14-7",
            "2.7.14-8",
            "2.7.15~rc1-1",
            "2.7.15~rc1-1ubuntu0.1",
            "2.7.15-4ubuntu4~18.04"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20852.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "idle-python2.7",
                "binary_version": "2.7.15-4ubuntu4~18.04.1"
              },
              {
                "binary_name": "libpython2.7",
                "binary_version": "2.7.15-4ubuntu4~18.04.1"
              },
              {
                "binary_name": "libpython2.7-minimal",
                "binary_version": "2.7.15-4ubuntu4~18.04.1"
              },
              {
                "binary_name": "libpython2.7-stdlib",
                "binary_version": "2.7.15-4ubuntu4~18.04.1"
              },
              {
                "binary_name": "libpython2.7-testsuite",
                "binary_version": "2.7.15-4ubuntu4~18.04.1"
              },
              {
                "binary_name": "python2.7",
                "binary_version": "2.7.15-4ubuntu4~18.04.1"
              },
              {
                "binary_name": "python2.7-examples",
                "binary_version": "2.7.15-4ubuntu4~18.04.1"
              },
              {
                "binary_name": "python2.7-minimal",
                "binary_version": "2.7.15-4ubuntu4~18.04.1"
              }
            ],
            "availability": "No subscription required"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.6.8-1~18.04.2"
                }
              ]
            }
          ],
          "package": {
            "name": "python3.6",
            "purl": "pkg:deb/ubuntu/python3.6?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "3.6.3-1ubuntu1",
            "3.6.4~rc1-1",
            "3.6.4~rc1-2",
            "3.6.4-1",
            "3.6.4-2",
            "3.6.4-3build1",
            "3.6.4-4",
            "3.6.5~rc1-1",
            "3.6.5-3",
            "3.6.6-1~18.04",
            "3.6.7-1~18.04",
            "3.6.8-1~18.04.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20852.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "idle-python3.6",
                "binary_version": "3.6.8-1~18.04.2"
              },
              {
                "binary_name": "libpython3.6",
                "binary_version": "3.6.8-1~18.04.2"
              },
              {
                "binary_name": "libpython3.6-minimal",
                "binary_version": "3.6.8-1~18.04.2"
              },
              {
                "binary_name": "libpython3.6-stdlib",
                "binary_version": "3.6.8-1~18.04.2"
              },
              {
                "binary_name": "libpython3.6-testsuite",
                "binary_version": "3.6.8-1~18.04.2"
              },
              {
                "binary_name": "python3.6",
                "binary_version": "3.6.8-1~18.04.2"
              },
              {
                "binary_name": "python3.6-examples",
                "binary_version": "3.6.8-1~18.04.2"
              },
              {
                "binary_name": "python3.6-minimal",
                "binary_version": "3.6.8-1~18.04.2"
              },
              {
                "binary_name": "python3.6-venv",
                "binary_version": "3.6.8-1~18.04.2"
              }
            ],
            "availability": "No subscription required"
          }
        }
      ],
      "modified": "2026-10-08T19:46:17.718129825Z",
      "provider": "osv",
      "upstream": [
        "CVE-2018-20852"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2018-20852",
        "https://python-security.readthedocs.io/vuln/cookie-domain-check.html",
        "https://ubuntu.com/security/notices/USN-4127-1",
        "https://ubuntu.com/security/notices/USN-4127-2",
        "https://www.cve.org/CVERecord?id=CVE-2018-20852",
        "https://ubuntu.com/security/notices/USN-6891-1"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2018-20852",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 104495,
  "published_at": "2019-07-13T00:00:00+00:00"
}