Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-14647

Python's elementtree C accelerator failed to initialise Expat's hash salt during initialization. This could make it easy to conduct denial of service attacks against Expat by constructing an XML document that would cause pathological hash collisions in Expat's internal data structures, consuming large amounts CPU and RAM. The vulnerability exists in Python versions 3.7.0, 3.6.0 through 3.6.6, 3.5.0 through 3.5.6, 3.4.0 through 3.4.9, 2.7.0 through 2.7.15.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-14647
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 08:07 UTC · Revision 1

Source evidence

CVE-2018-14647

core-osv · Original source

Published 25 Sept 2018, 00:29 UTC

Python's elementtree C accelerator failed to initialise Expat's hash salt during initialization. This could make it easy to conduct denial of service attacks against Expat by constructing an XML document that would cause pathological hash collisions in Expat's internal data structures, consuming large amounts CPU and RAM. The vulnerability exists in Python versions 3.7.0, 3.6.0 through 3.6.6, 3.5.0 through 3.5.6, 3.4.0 through 3.4.9, 2.7.0 through 2.7.15.

osv:CVE-2018-14647
Complete source record
{
  "id": "08d7085dc4c754a6ed92745175c1ec0f3ec568ff5a4b9bdf045a6e04595f97d5",
  "url": "https://osv.dev/vulnerability/CVE-2018-14647",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-14647",
    "summary": "Python's elementtree C accelerator failed to initialise Expat's hash salt during initialization. This could make it easy to conduct denial of service attacks against Expat by constructing an XML document that would cause pathological hash collisions in Expat's internal data structures, consuming large amounts CPU and RAM. The vulnerability exists in Python versions 3.7.0, 3.6.0 through 3.6.6, 3.5.0 through 3.5.6, 3.4.0 through 3.4.9, 2.7.0 through 2.7.15.",
    "evidence": "osv:CVE-2018-14647",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2018-14647",
      "aliases": [
        "CVE-2018-14647",
        "PSF-2018-5"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/python/cpython",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "ca079a3ea30098aff3197c559a0e32d42dda6d84"
                },
                {
                  "introduced": "3101b7076270756f8be699358c69c5d15ea2cc48"
                },
                {
                  "last_affected": "0a5a5af9b6b47727c5ee3def4508dab312949075"
                },
                {
                  "introduced": "2e789a1f1d84b343a996e8654590703b5fbdd441"
                },
                {
                  "last_affected": "627d0c61ac96009450e3794a2401f244e56fcb79"
                },
                {
                  "introduced": "5c4568a05a0a62b5947c55f68f9f2ecfb90a4f12"
                },
                {
                  "last_affected": "4cf1f54eb764f856fda5a394d8598c0c90d69d77"
                },
                {
                  "introduced": "1bf9cc509326bc42cd8cb1650eb9bf64550d817e"
                },
                {
                  "last_affected": "1bf9cc509326bc42cd8cb1650eb9bf64550d817e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.7.0"
                      },
                      {
                        "last_affected": "2.7.15"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.4.0"
                      },
                      {
                        "last_affected": "3.4.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.5.0"
                      },
                      {
                        "last_affected": "3.5.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.6.0"
                      },
                      {
                        "last_affected": "3.6.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:python:python:3.7.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.7.0"
                      },
                      {
                        "last_affected": "3.7.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.7.0",
            "v3.5.6",
            "v3.4.9",
            "v3.5.6rc1",
            "v3.4.9rc1",
            "v3.7.0",
            "v3.6.6",
            "v3.6.6rc1",
            "v2.7.15",
            "v2.7.15rc1",
            "v3.5.5",
            "v3.4.8",
            "v3.5.5rc1",
            "v3.4.8rc1",
            "v3.4.7",
            "v3.5.4",
            "v3.5.4rc1",
            "v3.4.7rc1",
            "v3.6.2rc1",
            "v3.4.6",
            "v3.5.3",
            "v3.5.3rc1",
            "v3.4.6rc1",
            "v3.6.0rc1",
            "v2.7.13rc1",
            "v3.6.0b4",
            "v3.6.0b3",
            "v3.6.0b1",
            "v3.6.0a3",
            "v3.4.5",
            "v3.5.2",
            "v3.4.5rc1",
            "v3.5.2rc1",
            "v2.7.12rc1",
            "v3.5.1rc1",
            "v2.7.11rc1",
            "v3.5.0rc3",
            "v3.5.0rc2",
            "v3.5.0rc1",
            "v3.5.0b4",
            "v3.5.0b3",
            "v3.5.0b1",
            "v2.7.10rc1",
            "v3.5.0a4",
            "v3.5.0a3",
            "v3.5.0a2",
            "v3.4.3",
            "v3.5.0a1",
            "v3.4.3rc1",
            "v2.7.9rc1",
            "v3.4.2rc1",
            "v2.7.8",
            "v3.4.1",
            "v3.4.1rc1",
            "v3.4.0",
            "v3.4.0b3",
            "v3.4.0b2",
            "v3.4.0b1",
            "v2.7.6rc1",
            "v3.4.0a4",
            "v3.4.0a3",
            "v3.4.0a2",
            "v3.4.0a1",
            "v2.7.5",
            "v2.7.4rc1",
            "v3.3.0rc3",
            "v3.3.0rc2",
            "v3.3.0rc1",
            "v3.3.0b2",
            "v3.3.0b1",
            "v3.3.0a4",
            "v3.3.0a3",
            "v3.3.0a2",
            "v2.7.3rc1",
            "v2.7.2rc1",
            "v2.7",
            "v3.2rc3",
            "v3.2rc2",
            "v3.2rc1",
            "v3.2b2",
            "v3.2b1",
            "v2.7.1",
            "v2.7.1rc1",
            "v3.2a4",
            "v3.2a3",
            "v3.2a2",
            "v3.2a1",
            "v2.7rc2",
            "v2.7rc1",
            "v2.7b2",
            "v2.7b1",
            "v2.7a4",
            "v2.7a3",
            "v2.7a2",
            "v2.7a1",
            "v3.1",
            "v3.1rc2",
            "v3.1rc1",
            "v3.1b1",
            "v3.1a2",
            "v3.1a1",
            "v3.0rc3",
            "v3.0rc2",
            "v2.6",
            "v2.6rc2",
            "v3.0rc1",
            "v2.6rc1",
            "v3.0b3",
            "v2.6b3",
            "v2.6b2",
            "v3.0b2",
            "v2.6b1",
            "v3.0b1",
            "v2.6a3",
            "v3.0a5",
            "v2.6a2",
            "v3.0a4",
            "v3.0a3",
            "v2.6a1",
            "v3.0a2",
            "v3.0a1",
            "v2.5b3",
            "v2.5b2",
            "v2.5b1",
            "v2.5a2",
            "v2.5a1",
            "v2.5a0",
            "v2.4",
            "v2.4c1",
            "v2.4b2",
            "v2.4b1",
            "v2.4a3",
            "v2.4a2",
            "v2.4a1",
            "v2.3c2",
            "v2.3c1",
            "v2.2a3",
            "v2.1",
            "v2.1c2",
            "v2.1c1",
            "v2.1b2",
            "v2.1b1",
            "v2.1a2",
            "v2.1a1",
            "v2.0",
            "v2.0c1",
            "v2.0b2",
            "v2.0b1",
            "v1.6a2",
            "v1.6a1",
            "v1.5.2",
            "v1.5.2c1",
            "v1.5.2b2",
            "v1.5.2b1",
            "v1.5.2a2",
            "v1.5.2a1",
            "v1.5.1",
            "v1.5",
            "v1.5b2",
            "v1.5b1",
            "v1.5a4",
            "v1.5a3",
            "v1.5a2",
            "v1.5a1",
            "v1.4",
            "v1.4b3",
            "v1.4b2",
            "v1.4b1",
            "v1.3",
            "v1.3b1",
            "v1.2",
            "v1.2b4",
            "v1.2b3",
            "v1.2b2",
            "v1.2b1",
            "v1.1.1",
            "v1.1",
            "v1.0.2",
            "v1.0.1",
            "v0.9.9",
            "v0.9.8"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-14647.json"
          }
        }
      ],
      "modified": "2026-10-24T10:31:03.092007330Z",
      "provider": "osv",
      "references": [
        "https://lists.apache.org/thread.html/r1b103833cb5bc8466e24ff0ecc5e75b45a705334ab6a444e64e840a0%40%3Cissues.bookkeeper.apache.org%3E",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RBJCB2HWOJLP3L7CUQHJHNBHLSVOXJE5/",
        "https://access.redhat.com/errata/RHSA-2019:1260",
        "https://access.redhat.com/errata/RHSA-2019:2030",
        "https://access.redhat.com/errata/RHSA-2019:3725",
        "https://lists.debian.org/debian-lts-announce/2019/06/msg00022.html",
        "https://lists.debian.org/debian-lts-announce/2019/06/msg00023.html",
        "https://usn.ubuntu.com/3817-1/",
        "https://usn.ubuntu.com/3817-2/",
        "https://www.debian.org/security/2018/dsa-4306",
        "https://www.debian.org/security/2018/dsa-4307",
        "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-14647",
        "https://bugs.python.org/issue34623"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "12.04"
                  },
                  {
                    "last_affected": "12.04"
                  },
                  {
                    "introduced": "14.04"
                  },
                  {
                    "last_affected": "14.04"
                  },
                  {
                    "introduced": "16.04"
                  },
                  {
                    "last_affected": "16.04"
                  },
                  {
                    "introduced": "18.04"
                  },
                  {
                    "last_affected": "18.04"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  },
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "30"
                  },
                  {
                    "last_affected": "30"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*"
            ],
            "vendor_product": "opensuse:leap",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "15.1"
                  },
                  {
                    "last_affected": "15.1"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_desktop",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_workstation",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-14647",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 440168,
  "published_at": "2018-09-25T00:29:00.703+00:00"
}