# CVE-2026-7210: The expat and elementtree parsers use insufficient entropy for XML hash-flooding protection

- Severity: Medium 6.3 (CVSS:4.0, scored by PSF) `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.67%, higher than 53% of CVEs (2026-12-01)
- Published: 2026-05-11T17:19:09.784Z
- Modified: 2026-10-26T18:10:00.173Z
- Also known as: PSF-2026-23, BIT-LIBPYTHON-2026-7210, BIT-PYTHON-2026-7210, BIT-PYTHON-MIN-2026-7210
- Weaknesses: CWE-331
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PSF

## Description

`xml.parsers.expat` and `xml.etree.ElementTree` use insufficient entropy for Expat hash-flooding protection, which allows a crafted XML document to trigger hash flooding.\r\n\r\nFully mitigating this vulnerability requires both updating libexpat to 2.8.0 or later and applying this patch.

(As written by CVE List.)

## Affected

- Python Software Foundation CPython: before 3.10.22; from 3.11.0 before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.14; from 3.14.0 before 3.14.6; from 3.15.0a1 before 3.15.0b2
- https://github.com/python/cpython: before 24b8f12544468e4cedf5bfbe25442fcd495391e4; before 3573b3b1ecbd99030a0b18658e1bfece771b2566; before eeea765cb9d8f1fc3d8918b272ac3c477983f27a; before fc9b11ff49cbc82e6f917d07a61517a2b5f3145f; before e37df2a6a71d6538698e2d3188a7c345b827640b; before cbaecf9f16da611a646d507c1cbca265c588fc56; before ea70712d1a8508e14e9677d44f838dab04dc0286
- python python: before 3.13.14; from 3.14.0 before 3.14.6; 3.15.0
- libpython (Bitnami): before 3.10.22; from 3.11.0 before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.14; from 3.14.0 before 3.14.6
- python (Bitnami): before 3.10.22; from 3.11.0 before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.14; from 3.14.0 before 3.14.6
- python-min (Bitnami): before 3.10.22; from 3.11.0 before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.14; from 3.14.0 before 3.14.6

## Every score

- PSF: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://mail.python.org/archives/list/security-announce@python.org/thread/PNY5OMBDPM2FRUZTWFFPJ6LISWKV627K/> (advisory, mailing-list, third-party-advisory, vendor-advisory)
- <https://github.com/python/cpython/pull/149023> (fix, issue-tracking, patch, web)
- <https://github.com/python/cpython/issues/149018> (issue-tracking, report)
- <https://github.com/python/cpython/commit/24b8f12544468e4cedf5bfbe25442fcd495391e4> (fix, patch)
- <https://github.com/python/cpython/commit/3573b3b1ecbd99030a0b18658e1bfece771b2566> (fix, patch)
- <https://github.com/python/cpython/commit/eeea765cb9d8f1fc3d8918b272ac3c477983f27a> (fix, patch)
- <https://github.com/python/cpython/commit/fc9b11ff49cbc82e6f917d07a61517a2b5f3145f> (fix, patch)
- <https://github.com/python/cpython/commit/e37df2a6a71d6538698e2d3188a7c345b827640b> (fix, patch, web)
- <https://github.com/python/cpython/commit/cbaecf9f16da611a646d507c1cbca265c588fc56> (fix, patch, web)
- <https://github.com/python/cpython/commit/ea70712d1a8508e14e9677d44f838dab04dc0286> (fix, patch, web)
- <http://www.openwall.com/lists/oss-security/2026/05/11/8> (advisory, mailing-list, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2026/05/11/13> (advisory, mailing-list, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-7210> (web)

## Sources

- CVE List: [CVE-2026-7210](https://www.cve.org/CVERecord?id=CVE-2026-7210), CVE Terms of Use, modified 2026-10-02
- Python Software Foundation: [PSF-2026-23](https://osv.dev/vulnerability/PSF-2026-23), CC-BY-4.0, modified 2026-08-15
- NVD: [CVE-2026-7210](https://nvd.nist.gov/vuln/detail/CVE-2026-7210), Public domain, modified 2026-10-26
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2026-7210](https://osv.dev/vulnerability/BIT-LIBPYTHON-2026-7210), Apache-2.0, modified 2026-10-05
- Bitnami Vulnerability Database: [BIT-PYTHON-2026-7210](https://osv.dev/vulnerability/BIT-PYTHON-2026-7210), Apache-2.0, modified 2026-10-05
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2026-7210](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2026-7210), Apache-2.0, modified 2026-10-05

---

Page: https://cve.day/CVE-2026-7210 · Whole record: https://cve.day/CVE-2026-7210.json · Rebuilt by cve.day 2026-11-25T22:59:21.243Z
