# CVE-2018-14647: Python's elementtree C accelerator failed to initialise Expat's hash salt during initialization. This could make it eas…

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.0, CNA) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 10.91% (percentile 97, 2026-11-26)
- **CWE:** CWE-665, CWE-335
- **Published:** 2018-09-25T00:00:00.000Z
- **Modified:** 2026-10-07T19:17:11.210Z

## Who should check

- Anyone running The Python Project Python 3.8, 3.7, 3.6, 3.5, 3.4, 2.7

## 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 and fixed versions

- The Python Project Python: 3.8, 3.7, 3.6, 3.5, 3.4, 2.7 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2018-14647. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2018-14647.md
Affected: The Python Project Python 3.8, 3.7, 3.6, 3.5, 3.4, 2.7
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for The Python Project Python: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2018-14647 being exploited?

There is no confirmed exploitation: CVE-2018-14647 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 10.91% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2018-14647?

Medium: CVSS 5.3 (v3.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2018-14647?

The Python Project Python 3.8, 3.7, 3.6, 3.5, 3.4, 2.7.

### Is there a fix for CVE-2018-14647?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2018-14647?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://www.debian.org/security/2018/dsa-4306>
- vendor: <https://usn.ubuntu.com/3817-2/>
- vendor: <https://www.debian.org/security/2018/dsa-4307>
- vendor: <https://usn.ubuntu.com/3817-1/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RBJCB2HWOJLP3L7CUQHJHNBHLSVOXJE5/>
- vendor: <https://access.redhat.com/errata/RHSA-2019:1260>
- vendor: <https://access.redhat.com/errata/RHSA-2019:2030>
- vendor: <https://access.redhat.com/errata/RHSA-2019:3725>
- vendor: <http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html>
- patch: <https://bugs.python.org/issue34623>
- other: <http://www.securitytracker.com/id/1041740>
- other: <http://www.securityfocus.com/bid/105396>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-14647>
- other: <https://lists.debian.org/debian-lts-announce/2019/06/msg00022.html>
- other: <https://lists.debian.org/debian-lts-announce/2019/06/msg00023.html>
- other: <https://lists.apache.org/thread.html/r1b103833cb5bc8466e24ff0ecc5e75b45a705334ab6a444e64e840a0%40%3Cissues.bookkeeper.apache.org%3E>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2018-14647>

HTML: <https://flawdb.com/CVE-2018-14647> · JSON: <https://flawdb.com/api/v1/entries/CVE-2018-14647>
