Skip to content
OpenAdvisories
Medium · 5.3 CVE-2018-14647 EUVD-2018-6545GHSA-gvw2-fvqg-v8mm

Python's elementtree C accelerator failed to initialise Expat's hash salt during initialization. This could make it easy to conduct denial …

Published Sep 25, 2018 · Updated Oct 7, 2026 · Assigned by redhat

Description

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.

Affected products

VendorProductAffectedFixed
The Python Project Python 3.8, 3.7, 3.6, 3.5, 3.4, 2.7 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 11 python2.7 2.7.15-5 —
Debian 9 python2.7 2.7.13-2+deb9u3 DSA-4306-1
Debian 9 python3.5 3.5.3-1+deb9u1 DSA-4307-1
Debian 8 python2.7 2.7.9-2+deb8u3 DLA-1834-1
Debian 8 python3.4 3.4.2-1+deb8u3 DLA-1835-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS python3.10 3.10.12-1~22.04.4 USN-6891-1
Ubuntu 20.04 LTS python3.8 3.8.10-0ubuntu1~20.04.10 USN-6891-1
Ubuntu 18.04 LTS python2.7 2.7.15~rc1-1ubuntu0.1 USN-3817-1
Ubuntu 18.04 LTS python3.6 3.6.7-1~18.04 —
Ubuntu 18.04 LTS python3.7 3.7.1-1~18.04 —
Ubuntu 16.04 LTS python2.7 2.7.12-1ubuntu0~16.04.4 USN-3817-1
Ubuntu 16.04 LTS python3.5 3.5.2-2ubuntu0~16.04.5 USN-3817-1
Ubuntu 14.04 LTS python2.7 2.7.6-8ubuntu0.5 USN-3817-1
Ubuntu 14.04 LTS python3.4 3.4.3-1ubuntu1~14.04.7 USN-3817-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS python3.11 3.11.0~rc1-1~22.04.1~esm1 USN-6891-1
Ubuntu Pro 20.04 LTS python3.9 3.9.5-3ubuntu0~20.04.1+esm2 USN-6891-1
Ubuntu Pro 18.04 LTS python3.6 3.6.9-1~18.04ubuntu1.13+esm2 USN-6891-1
Ubuntu Pro 18.04 LTS python3.7 3.7.5-2ubuntu1~18.04.2+esm3 USN-6891-1
Ubuntu Pro 18.04 LTS python3.8 3.8.0-3ubuntu1~18.04.2+esm2 USN-6891-1
Ubuntu Pro 16.04 LTS python3.5 3.5.2-2ubuntu0~16.04.13+esm13 USN-6891-1
Ubuntu Pro 14.04 LTS python3.5 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1 USN-6891-1
ReleasePackageFixed inAdvisory
RHEL 7 python +6 2.7.5-86.el7 RHSA-2019:2030
RHEL 3 python27-python +6 2.7.16-4.el6 RHSA-2019:1260
RHEL 3 python27-python-jinja2 2.6-12.el6 RHSA-2019:1260
RHEL 3 rh-python36-python +6 3.6.9-2.el6 RHSA-2019:3725
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 7.6 EUS python +6 2.7.5-83.el7_6 RHSA-2020:1462
RHEL 7.5 EUS python +6 2.7.5-74.el7_5 RHSA-2020:1268
RHEL 7.4 TUS python +6 2.7.5-63.el7_4 RHSA-2020:1346
RHEL 7.4 E4S python +6 2.7.5-63.el7_4 RHSA-2020:1346
RHEL 7.4 AUS python +6 2.7.5-63.el7_4 RHSA-2020:1346
ReleasePackageFixed inAdvisory
SLES 15 SP1 python 2.7.17-7.32.2 SUSE-SU-2020:0234-1
SLES 15 SP1 python-base 2.7.17-7.32.1 SUSE-SU-2020:0234-1
SLES 15 SP1 python3 +1 3.6.10-3.42.2 SUSE-SU-2020:0114-1
SLES 15 python 2.7.17-7.32.2 SUSE-SU-2020:0234-1
SLES 15 python-base 2.7.17-7.32.1 SUSE-SU-2020:0234-1
SLES 15 python3 +1 3.6.10-3.42.2 SUSE-SU-2020:0114-1
SLES 12 SP5 python3 +1 3.4.10-25.52.1 SUSE-SU-2020:2699-1
SLES 12 SP4 python +2 2.7.13-28.21.1 SUSE-SU-2019:0482-1
SLES 12 SP4 python3 +1 3.4.6-25.29.1 SUSE-SU-2020:2699-1, SUSE-SU-2019:2053-1
SLES 12 SP3 python +2 2.7.13-28.21.1 SUSE-SU-2019:0482-1
SLES 12 SP3 python3 +1 3.4.6-25.29.1 SUSE-SU-2020:2699-1, SUSE-SU-2019:2053-2, SUSE-SU-2019:2053-1
Show 19 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP2 python +2 2.7.13-28.21.1 SUSE-SU-2019:0482-1
SLES 12 SP2 python3 +1 3.4.6-25.29.1 SUSE-SU-2020:2699-1, SUSE-SU-2019:2053-1
SLES 12 SP1 python +2 2.7.13-28.21.1 SUSE-SU-2019:0482-1
SLES 12 SP1 python3 +1 3.4.6-25.29.1 SUSE-SU-2019:2053-1
SLES 12 python3 +1 3.4.6-25.29.1 SUSE-SU-2020:2699-1, SUSE-SU-2019:2053-1
SLES 11 SP4 python 2.6.9-40.21.2 SUSE-SU-2018:3156-1
SLES 11 SP4 python-base 2.6.9-40.21.1 SUSE-SU-2018:3156-1
SLES 11 SP4 python-doc 2.6-8.40.21.1 SUSE-SU-2018:3156-1
SLES 2 python 2.7.17-7.32.2 SUSE-SU-2020:0234-1
SLES 2 python-base 2.7.17-7.32.1 SUSE-SU-2020:0234-1
SLES for SAP 12 SP5 python3 +1 3.4.10-25.52.1 SUSE-SU-2020:2699-1
SLES for SAP 12 SP4 python +2 2.7.13-28.21.1 SUSE-SU-2019:0482-1
SLES for SAP 12 SP4 python3 +1 3.4.6-25.29.1 SUSE-SU-2020:2699-1, SUSE-SU-2019:2053-1
SLES for SAP 12 SP3 python +2 2.7.13-28.21.1 SUSE-SU-2019:0482-1
SLES for SAP 12 SP3 python3 +1 3.4.6-25.29.1 SUSE-SU-2020:2699-1, SUSE-SU-2019:2053-1
SLES for SAP 12 SP2 python +2 2.7.13-28.21.1 SUSE-SU-2019:0482-1
SLES for SAP 12 SP2 python3 +1 3.4.6-25.29.1 SUSE-SU-2020:2699-1, SUSE-SU-2019:2053-1
SLES for SAP 12 SP1 python +2 2.7.13-28.21.1 SUSE-SU-2019:0482-2
SLES for SAP 12 SP1 python3 +1 3.4.6-25.29.1 SUSE-SU-2019:2053-1
SLES for SAP 11 SP4 python 2.6.9-40.21.2 SUSE-SU-2018:3156-1
SLES for SAP 11 SP4 python-base 2.6.9-40.21.1 SUSE-SU-2018:3156-1
SLES for SAP 11 SP4 python-doc 2.6-8.40.21.1 SUSE-SU-2018:3156-1
SUSE OpenStack Cloud Crowbar 9 python3 +1 3.4.10-25.52.1 SUSE-SU-2020:2699-1
SUSE OpenStack Cloud Crowbar 8 python3 +1 3.4.6-25.29.1 SUSE-SU-2020:2699-1, SUSE-SU-2019:2053-2
SUSE OpenStack Cloud 9 python3 +1 3.4.10-25.52.1 SUSE-SU-2020:2699-1
SUSE OpenStack Cloud 8 python3 +1 3.4.6-25.29.1 SUSE-SU-2020:2699-1, SUSE-SU-2019:2053-1
SUSE OpenStack Cloud 7 python +2 2.7.13-28.21.1 SUSE-SU-2019:0482-1
SUSE OpenStack Cloud 7 python3 +1 3.4.6-25.29.1 SUSE-SU-2020:2699-1, SUSE-SU-2019:2053-1
SUSE HPE Helion OpenStack 8 python3 +1 3.4.6-25.29.1 SUSE-SU-2020:2699-1, SUSE-SU-2019:2053-2
SUSE Enterprise Storage 5 python 2.7.13-28.21.1 SUSE-SU-2019:0482-1
SUSE Enterprise Storage 5 python3 +1 3.4.6-25.29.1 SUSE-SU-2020:2699-1, SUSE-SU-2019:2053-2, SUSE-SU-2019:2053-1
SUSE Enterprise Storage 4 python +2 2.7.13-28.21.1 SUSE-SU-2019:0482-1
SUSE Enterprise Storage 4 python3 +1 3.4.6-25.29.1 SUSE-SU-2019:2053-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python 2.7.18-8.1 openSUSE-SU-2024:11202-1
openSUSE Tumbleweed python36 3.6.15-1.1 openSUSE-SU-2024:11284-1
openSUSE Leap 15.1 python3 +1 3.6.10-lp151.6.7.1 openSUSE-SU-2020:0086-1
ReleasePackageFixed inAdvisory
Alpine v3.15 python2 2.7.16-r0 —
Alpine v3.14 python2 2.7.16-r0 —
Alpine v3.13 python2 2.7.16-r0 —
Alpine v3.12 python2 2.7.16-r0 —
Alpine v3.11 python2 +1 2.7.16-r0 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.10 python2 +1 2.7.16-r0 —
Alpine v3.9 python2 2.7.16-r0 —
Alpine v3.8 python2 2.7.15-r2 —
Alpine v3.8 python3 3.6.8-r0 —
Alpine v3.7 python2 2.7.15-r2 —
Alpine v3.7 python3 3.6.8-r0 —
Alpine v3.6 python3 3.6.8-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 python3 +6 3.7.1-9.amzn2.0.1 ALAS2-2018-1132

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 python +6 2.7.5-86.0.1.el7 ELSA-2019-2030

Advisories 25

References