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

- Priority: **Routine**
- Reason: Not severe (CVSS 2, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-28 · Modified: 2026-08-13
- Aliases: ALPINE-CVE-2026-6879, RHSA-2026:48238, RHSA-2026:48246, RHSA-2026:48253, RHSA-2026:48278, RHSA-2026:48279, UBUNTU-CVE-2026-6879, DEBIAN-CVE-2026-6879, CGA-64mm-9x86-22m5, CGA-7g6r-phc4-fvqh, CGA-9jgp-r77x-m572, CGA-9mh7-8r38-m8f8, CGA-cgh3-r65w-2fvw, CGA-qcv8-4xf6-7j4v, CGA-rmhf-8xg5-hx99, CGA-rpwc-gfvx-7h59, CGA-vqx2-w8wp-m64v, CGA-xmgx-m5w7-7qfr
- Record: https://cvemate.com/vulnerability/CVE-2026-6879 · JSON: https://cvemate.com/vulnerability/CVE-2026-6879/json

## Description

```text
`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.
```

## Signals

- CVSS: 2 low (v4.0, CVE.org) CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- EPSS: 0.355%, percentile 31.265%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 74)

- alpine python3 (Alpine Linux): \< 3.14.7-r0
- chainguard python-3.10 (Chainguard): \< 3.10.21-r0
- chainguard python-3.11 (Chainguard): \< 3.11.16-r0
- chainguard python-3.12 (Chainguard): \< 3.12.14-r0
- chainguard python-3.13 (Chainguard): \< 3.13.15-r0
- chainguard python-3.14 (Chainguard): \< 3.14.7-r0
- wolfi python-3.10 (Wolfi): \< 3.10.21-r0
- wolfi python-3.11 (Wolfi): \< 3.11.16-r0
- wolfi python-3.12 (Wolfi): \< 3.12.14-r0
- wolfi python-3.13 (Wolfi): \< 3.13.15-r0
- wolfi python-3.14 (Wolfi): \< 3.14.7-r0
- debian pypy3 (Debian): All versions (No fix recorded) \| \< 8.0.0+dfsg-1
- debian python3.11 (Debian): All versions (No fix recorded)
- debian python3.13 (Debian): \< 3.13.15-1 \| \< 3.13.5-2+deb13u5
- debian python3.14 (Debian): \< 3.14.7-1
- ubuntu pypy3 (Ubuntu): All versions (No fix recorded)
- ubuntu python2.7 (Ubuntu): All versions (No fix recorded)
- ubuntu python3.10 (Ubuntu): All versions (No fix recorded)
- ubuntu python3.11 (Ubuntu): All versions (No fix recorded)
- ubuntu python3.12 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 31)

- <https://github.com/python/cpython/pull/152676>
- <https://github.com/python/cpython/issues/152674>
- <https://mail.python.org/archives/list/security-announce@python.org/thread/7YMZ6DDZVR26TJJBVO3RDNBAVGHNYAKR/>
- <https://github.com/python/cpython/commit/2ffab083782968a4d732738f4f1dff6bbd69d2b0>
- <https://github.com/python/cpython/commit/02c08e6b747ac43d0d866a4ffa916bedf3423f81>
- <https://github.com/python/cpython/commit/390337b8ba1658833fdef379e1739c9f9533a8db>
- <https://github.com/python/cpython/commit/cb409342a19f25656f62e679f8bac265fe1442c3>
- <https://github.com/python/cpython/commit/96510a3758f4a075f43223afdee3b6ee1a7a7f02>
- <https://github.com/python/cpython/commit/037965c00a427cba5c05447efadc67c51a492e85>
- <https://github.com/python/cpython/commit/0583f24ae678993e3f7939f51ad5bcae5ad9dc70>
- <https://security.alpinelinux.org/vuln/CVE-2026-6879>
- <https://access.redhat.com/errata/RHSA-2026:48238>
- <https://access.redhat.com/security/cve/CVE-2026-6879>
- <https://access.redhat.com/security/updates/classification/>
- <https://images.redhat.com/>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_48238.json>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2508122>
- <https://www.cve.org/CVERecord?id=CVE-2026-6879>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6879>
- <https://access.redhat.com/errata/RHSA-2026:48246>

---

Data as of 2026-12-05T04:36:40.738Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
