CVEfocus › CVE database › CVE-2026-6879

CVE-2026-6879Quadratic Behavior in xml.etree.ElementPath Index Predicates

CVSS 2.0 LowEPSS 0.4% (higher than 22% of CVEs)Published 2026-07-28Updated 2026-08-13Assigner: PSF

`Element.findall()` and fully-consumed `Element.iterfind()` exhibit `O(n^2)` time complexity when using XPath index predicates (e.g. `[1]`, `[last()]`, `[last()-N]`) on XML documents with many same-tag siblings. `Element.find()` is only affected when the first match is near the end  of the sibling list, such as with `[last()]` or `[last()-N]`;  `.//item[1]` short-circuits after the first match.

CWE-407

What to do

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

Debian, Ubuntu have 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

4Fixed
20Fix pending
6Under investigation

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 26.10pypy3Fix pendingUBUNTU-CVE-2026-6879
Ubuntu 26.10python3.14Fix pendingUBUNTU-CVE-2026-6879
Ubuntu 26.04pypy3Under investigationUBUNTU-CVE-2026-6879
Ubuntu 26.04python3.14Under investigationUBUNTU-CVE-2026-6879
Ubuntu 24.04pypy3Under investigationUBUNTU-CVE-2026-6879
Ubuntu 24.04python3.12Under investigationUBUNTU-CVE-2026-6879
Ubuntu 22.04pypy3Under investigationUBUNTU-CVE-2026-6879
Ubuntu 22.04python2.7Fix pendingUBUNTU-CVE-2026-6879
Ubuntu 22.04python3.10Under investigationUBUNTU-CVE-2026-6879
Ubuntu 22.04python3.11Fix pendingUBUNTU-CVE-2026-6879
Ubuntu 20.04pypy3Fix pendingUBUNTU-CVE-2026-6879
Ubuntu 20.04python2.7Fix pendingUBUNTU-CVE-2026-6879
Ubuntu 20.04python3.8Fix pendingUBUNTU-CVE-2026-6879
Ubuntu 20.04python3.9Fix pendingUBUNTU-CVE-2026-6879
Ubuntu 18.04python2.7Fix pendingUBUNTU-CVE-2026-6879
Ubuntu 18.04python3.6Fix pendingUBUNTU-CVE-2026-6879
Ubuntu 18.04python3.7Fix pendingUBUNTU-CVE-2026-6879
Ubuntu 18.04python3.8Fix pendingUBUNTU-CVE-2026-6879
Ubuntu 16.04python2.7Fix pendingUBUNTU-CVE-2026-6879
Ubuntu 16.04python3.5Fix pendingUBUNTU-CVE-2026-6879
Ubuntu 14.04python2.7Fix pendingUBUNTU-CVE-2026-6879
Ubuntu 14.04python3.4Fix pendingUBUNTU-CVE-2026-6879
Ubuntu 14.04python3.5Fix pendingUBUNTU-CVE-2026-6879
Debian 14pypy3Fixed8.0.0+dfsg-1DEBIAN-CVE-2026-6879
Debian 14python3.14Fixed3.14.7-1DEBIAN-CVE-2026-6879
Debian 13pypy3Fix pendingDEBIAN-CVE-2026-6879
Debian 13python3.13Fixed3.13.5-2+deb13u5DEBIAN-CVE-2026-6879
Debian 12pypy3Fix pendingDEBIAN-CVE-2026-6879
Debian 12python3.11Fix pendingDEBIAN-CVE-2026-6879
Alpine Linux 3.24python3Fixed3.14.7-r0ALPINE-CVE-2026-6879

What the vendor says

As published in the CVE record by PSF, 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.