CVEfocus › CVE database › CVE-2018-14647

CVE-2018-14647

CVSS 5.3 MediumEPSS 10.9% (higher than 96% of CVEs)Published 2018-09-25Updated 2026-10-07Assigner: redhat

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.

CWE-335CWE-665

What to do

Likely to be exploited: EPSS gives a 11% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Alpine, Red Hat, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

28Fixed
1Fix pending
7Will not fix
48Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04python2.7Fixed2.7.15~rc1-1ubuntu0.1UBUNTU-CVE-2018-14647
Ubuntu 18.04python3.6Fixed3.6.7-1~18.04UBUNTU-CVE-2018-14647
Ubuntu 18.04python3.7Fixed3.7.1-1~18.04UBUNTU-CVE-2018-14647
Ubuntu 16.04python2.7Fixed2.7.12-1ubuntu0~16.04.4UBUNTU-CVE-2018-14647
Ubuntu 16.04python3.5Fixed3.5.2-2ubuntu0~16.04.5UBUNTU-CVE-2018-14647
Ubuntu 14.04python2.7Fixed2.7.6-8ubuntu0.5UBUNTU-CVE-2018-14647
Ubuntu 14.04python3.4Fixed3.4.3-1ubuntu1~14.04.7UBUNTU-CVE-2018-14647
Ubuntu 14.04python3.5Fix pending3.5.2-2ubuntu0~16.04.4~14.04.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2018-14647
Red Hat Enterprise Linux 8platform-pythonNot affected
Red Hat Enterprise Linux 8platform-python-debugNot affected
Red Hat Enterprise Linux 8platform-python-develNot affected
Red Hat Enterprise Linux 8python-PyMySQLNot affected
Red Hat Enterprise Linux 8python-distroNot affected
Red Hat Enterprise Linux 8python-docsNot affected
Red Hat Enterprise Linux 8python-docutilsNot affected
Red Hat Enterprise Linux 8python-noseNot affected
Red Hat Enterprise Linux 8python-nose-docsNot affected
Red Hat Enterprise Linux 8python-pygmentsNot affected
Red Hat Enterprise Linux 8python-pymongoNot affected
Red Hat Enterprise Linux 8python-pymongo-docNot affected
Red Hat Enterprise Linux 8python-sqlalchemyNot affected
Red Hat Enterprise Linux 8python-sqlalchemy-docNot affected
Red Hat Enterprise Linux 8python-virtualenvNot affected
Red Hat Enterprise Linux 8python-virtualenv-docNot affected
Red Hat Enterprise Linux 8python-wheelNot affected
Red Hat Enterprise Linux 8python2Not affected
Red Hat Enterprise Linux 8python2-debugNot affected
Red Hat Enterprise Linux 8python2-develNot affected
Red Hat Enterprise Linux 8python2-libsNot affected
Red Hat Enterprise Linux 8python2-testNot affected
Red Hat Enterprise Linux 8python2-tkinterNot affected
Red Hat Enterprise Linux 8python2-toolsNot affected
Red Hat Enterprise Linux 8python3Not affected
Red Hat Enterprise Linux 8python3-PyMySQLNot affected
Red Hat Enterprise Linux 8python3-bsonNot affected
Red Hat Enterprise Linux 8python3-distroNot affected
Red Hat Enterprise Linux 8python3-docsNot affected
Red Hat Enterprise Linux 8python3-docutilsNot affected
Red Hat Enterprise Linux 8python3-idleNot affected
Red Hat Enterprise Linux 8python3-libsNot affected
Red Hat Enterprise Linux 8python3-noseNot affected
Red Hat Enterprise Linux 8python3-pygmentsNot affected
Red Hat Enterprise Linux 8python3-pymongoNot affected
Red Hat Enterprise Linux 8python3-pymongo-gridfsNot affected
Red Hat Enterprise Linux 8python3-scipyNot affected
Red Hat Enterprise Linux 8python3-sqlalchemyNot affected
Red Hat Enterprise Linux 8python3-testNot affected
Red Hat Enterprise Linux 8python3-tkinterNot affected
Red Hat Enterprise Linux 8python3-virtualenvNot affected
Red Hat Enterprise Linux 8python3-wheelNot affected
Red Hat Enterprise Linux 8python3-wheel-wheelNot affected
Red Hat Enterprise Linux 8python36Not affected
Red Hat Enterprise Linux 8python36-debugNot affected
Red Hat Enterprise Linux 8python36-develNot affected
Red Hat Enterprise Linux 8python36-rpm-macrosNot affected
Red Hat Enterprise Linux 8scipyNot affected
Red Hat Enterprise Linux 7pythonFixed0:2.7.5-86.el7RHSA-2019:2030
Red Hat Enterprise Linux 7python-debugFixed0:2.7.5-86.el7RHSA-2019:2030
Red Hat Enterprise Linux 7python-develFixed0:2.7.5-86.el7RHSA-2019:2030
Red Hat Enterprise Linux 7python-libsFixed0:2.7.5-86.el7RHSA-2019:2030
Red Hat Enterprise Linux 7python-testFixed0:2.7.5-86.el7RHSA-2019:2030
Red Hat Enterprise Linux 7python-toolsFixed0:2.7.5-86.el7RHSA-2019:2030
Red Hat Enterprise Linux 7tkinterFixed0:2.7.5-86.el7RHSA-2019:2030
Red Hat Enterprise Linux 6pythonWill not fix
Will not fix
Red Hat Enterprise Linux 6python-develWill not fix
Will not fix
Red Hat Enterprise Linux 6python-libsWill not fix
Will not fix
Red Hat Enterprise Linux 6python-testWill not fix
Will not fix
Red Hat Enterprise Linux 6python-toolsWill not fix
Will not fix
Red Hat Enterprise Linux 6tkinterWill not fix
Will not fix
Red Hat Enterprise Linux 5pythonWill not fix
Will not fix
Alpine Linux 3.15python2Fixed2.7.16-r0ALPINE-CVE-2018-14647
Alpine Linux 3.14python2Fixed2.7.16-r0ALPINE-CVE-2018-14647
Alpine Linux 3.13python2Fixed2.7.16-r0ALPINE-CVE-2018-14647
Alpine Linux 3.12python2Fixed2.7.16-r0ALPINE-CVE-2018-14647
Alpine Linux 3.11python2Fixed2.7.16-r0ALPINE-CVE-2018-14647
Alpine Linux 3.11python2-tkinterFixed2.7.16-r0ALPINE-CVE-2018-14647
Alpine Linux 3.10python2Fixed2.7.16-r0ALPINE-CVE-2018-14647
Alpine Linux 3.10python2-tkinterFixed2.7.16-r0ALPINE-CVE-2018-14647
Alpine Linux 3.9python2Fixed2.7.16-r0ALPINE-CVE-2018-14647
Alpine Linux 3.8python2Fixed2.7.15-r2ALPINE-CVE-2018-14647
Alpine Linux 3.8python3Fixed3.6.8-r0ALPINE-CVE-2018-14647
Alpine Linux 3.7python2Fixed2.7.15-r2ALPINE-CVE-2018-14647
Alpine Linux 3.7python3Fixed3.6.8-r0ALPINE-CVE-2018-14647
Alpine Linux 3.6python3Fixed3.6.8-r0ALPINE-CVE-2018-14647

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.