Ubuntu CVE Tracker
UBUNTU-CVE-2026-6879
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | python2.7 | All versions, no fix listed |
| Ubuntu:Pro:14.04:LTS | python3.4 | All versions, no fix listed |
| Ubuntu:Pro:14.04:LTS | python3.5 | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | python2.7 | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | python3.5 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | python2.7 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | python3.6 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | python3.7 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | python3.8 | All versions, no fix listed |
| Ubuntu:Pro:20.04:LTS | python3.8 | All versions, no fix listed |
| Ubuntu:20.04:LTS | pypy3 | All versions, no fix listed |
| Ubuntu:Pro:20.04:LTS | python2.7 | All versions, no fix listed |
| Ubuntu:Pro:20.04:LTS | python3.9 | All versions, no fix listed |
| Ubuntu:22.04:LTS | pypy3 | All versions, no fix listed |
| Ubuntu:22.04:LTS | python3.10 | All versions, no fix listed |
| Ubuntu:Pro:22.04:LTS | python2.7 | All versions, no fix listed |
| Ubuntu:Pro:22.04:LTS | python3.11 | All versions, no fix listed |
| Ubuntu:24.04:LTS | pypy3 | All versions, no fix listed |
| Ubuntu:24.04:LTS | python3.12 | All versions, no fix listed |
| Ubuntu:26.10 | pypy3 | All versions, no fix listed |
| Ubuntu:26.10 | python3.14 | All versions, no fix listed |
| Ubuntu:26.04:LTS | pypy3 | All versions, no fix listed |
| Ubuntu:26.04:LTS | python3.14 | All versions, no fix listed |
References
- https://ubuntu.com/security/CVE-2026-6879
- https://www.cve.org/CVERecord?id=CVE-2026-6879
- https://mail.python.org/archives/list/[email protected]/thread/7YMZ6DDZVR26TJJBVO3RDNBAVGHNYAKR/
- https://github.com/python/cpython/issues/152674
- https://github.com/python/cpython/pull/152676
- https://github.com/python/cpython/commit/2ffab083782968a4d732738f4f1dff6bbd69d2b0