DHI-3fhf-wfff-o7tx-w77e
`Element.findall()` and fully-consumed `Element.iterfind()` exhibit `O(n^2)` time complexity when using XPath index…
UnscoredFix available
- CVSS
- —
- EPSS
- —
- Published
- 2026-11-19
- Age
- 14d old
- Modified
- 2026-11-28
- Product
- Docker Hardened Images:Alpine:3.23 python-3.10
Description
`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.
Fixed in
3.11.15-12 · 3.11.15-r12 · 3.11.15-r4 · 3.12.13-12 · 3.12.13-r12 · 3.12.13-r4 · 3.13.14-4 · 3.13.14-r3 · 3.14.6-6 · 3.14.6-r12 · 3.14.6-r3 · 3.15.0-r0
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Docker Hardened Images:Alpine:3.23 | python-3.11 | >=0, <3.11.15-r12 | 3.11.15-r12 |
| Docker Hardened Images:Alpine:3.23 | python-3.12 | >=0, <3.12.13-r12 | 3.12.13-r12 |
| Docker Hardened Images:Alpine:3.23 | python-3.13 | >=0, <3.13.14-r3 | 3.13.14-r3 |
| Docker Hardened Images:Alpine:3.23 | python-3.14 | >=0, <3.14.6-r12 | 3.14.6-r12 |
| Docker Hardened Images:Alpine:3.23 | python-3.15 | >=0, <3.15.0-r0 | 3.15.0-r0 |
| Docker Hardened Images:Alpine:3.24 | python-3.11 | >=0, <3.11.15-r4 | 3.11.15-r4 |
| Docker Hardened Images:Alpine:3.24 | python-3.12 | >=0, <3.12.13-r4 | 3.12.13-r4 |
| Docker Hardened Images:Alpine:3.24 | python-3.13 | >=0, <3.13.14-r3 | 3.13.14-r3 |
| Docker Hardened Images:Alpine:3.24 | python-3.14 | >=0, <3.14.6-r3 | 3.14.6-r3 |
| Docker Hardened Images:Debian:13 | python-3.11 | >=0, <3.11.15-12 | 3.11.15-12 |
| Docker Hardened Images:Debian:13 | python-3.12 | >=0, <3.12.13-12 | 3.12.13-12 |
| Docker Hardened Images:Debian:13 | python-3.13 | >=0, <3.13.14-4 | 3.13.14-4 |
| Docker Hardened Images:Debian:13 | python-3.14 | >=0, <3.14.6-6 | 3.14.6-6 |
Sources
- OSV · first seen 14d ago · CC-BY 4.0
References
- https://scout.docker.com/v/DHI-3fhf-wfff-o7tx-w77e advisory
- https://github.com/python/cpython/pull/152676 fix
- https://github.com/python/cpython/commit/cb409342a19f25656f62e679f8bac265fe1442c3 fix
- https://github.com/python/cpython/commit/96510a3758f4a075f43223afdee3b6ee1a7a7f02 fix
- https://github.com/python/cpython/commit/390337b8ba1658833fdef379e1739c9f9533a8db fix
- https://github.com/python/cpython/commit/2ffab083782968a4d732738f4f1dff6bbd69d2b0 fix
- https://github.com/python/cpython/commit/0583f24ae678993e3f7939f51ad5bcae5ad9dc70 fix
- https://github.com/python/cpython/commit/037965c00a427cba5c05447efadc67c51a492e85 fix
- https://github.com/python/cpython/commit/02c08e6b747ac43d0d866a4ffa916bedf3423f81 fix
- https://github.com/python/cpython/issues/152674 web
- https://security.alpinelinux.org/vuln/CVE-2026-6879 advisory
- https://alas.aws.amazon.com/AL2023/ALAS-2026-2122.html advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-6879 advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-18503 advisory
- https://alas.aws.amazon.com/AL2023/ALAS-2026-2123.html advisory
- https://alas.aws.amazon.com/AL2023/ALAS-2026-2124.html advisory
- https://alas.aws.amazon.com/AL2023/ALAS-2026-2125.html advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-6879 advisory
- https://security-tracker.debian.org/tracker/CVE-2026-6879 advisory
- https://ubuntu.com/security/CVE-2026-6879 advisory
- http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-6879 advisory