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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | python3 +6 | 3.7.1-9.amzn2.0.1 | ALAS2-2018-1132 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | python +6 | 2.7.5-86.0.1.el7 | ELSA-2019-2030 |
Advisories 25
- RHSA-2020:1268 Red Hat Security Advisory: python security update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- RHSA-2020:1346 Red Hat Security Advisory: python security update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- RHSA-2019:3725 Red Hat Security Advisory: rh-python36-python security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- RHSA-2019:1260 Red Hat Security Advisory: python27-python and python27-python-jinja2 security and bug fix update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- USN-6891-1 python3.5, python3.6, python3.7, python3.8, python3.9, python3.10, python3.11, python3.12 vulnerabilities Ubuntu Security Notices (USN) · Oct 8, 2026
- RHSA-2020:1462 Red Hat Security Advisory: python security update Red Hat Security Advisories (RHSA) · Oct 8, 2026
- RHSA-2019:2030 Red Hat Security Advisory: python security and bug fix update Red Hat Security Advisories (RHSA) · Oct 8, 2026
- USN-3817-1 python2.7, python3.4, python3.5 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-4306-1 python2.7 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-4307-1 python3.5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1835-1 python3.4 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1834-1 python2.7 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2019:2053-1 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:3156-1 Security update for python SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:0086-1 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:0482-2 Security update for python SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:2053-2 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:2699-1 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:0114-1 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11284-1 python36-3.6.15-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11202-1 python-2.7.18-8.1 on GA media SUSE / openSUSE Security Updates · May 7, 2025
- SUSE-SU-2019:0482-1 Security update for python SUSE / openSUSE Security Updates · May 2, 2025
- SUSE-SU-2020:0234-1 Security update for python SUSE / openSUSE Security Updates · May 2, 2025
- ELSA-2019-2030 Moderate: python security and bug fix update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Aug 13, 2019
- ALAS2-2018-1132 Moderate: python3 security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Dec 19, 2018
References
- DSA-4306 vendor-advisory
- USN-3817-2 vendor-advisory
- 1041740 vdb-entry
- 105396 vdb-entry
- DSA-4307 vendor-advisory
- https://bugs.python.org/issue34623
- USN-3817-1 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-14647
- FEDORA-2019-0c91ce7b3c vendor-advisory
- RHSA-2019:1260 vendor-advisory
- [debian-lts-announce] 20190625 [SECURITY] [DLA 1834-1] python2.7 security update mailing-list
- [debian-lts-announce] 20190625 [SECURITY] [DLA 1835-1] python3.4 security update mailing-list
- RHSA-2019:2030 vendor-advisory
- RHSA-2019:3725 vendor-advisory
- openSUSE-SU-2020:0086 vendor-advisory
- [bookkeeper-issues] 20200729 [GitHub] [bookkeeper] padma81 opened a new issue #2387: Security vulnerabilities in the apache/bookkeeper-4.9.2 image mailing-list