CVE-2026-6879: python software foundation cpython Inefficient Algorithmic Complexity
Vulnerability summary
CVE-2026-6879 is a low (CVSS 2.0) Inefficient Algorithmic Complexity vulnerability in python software foundation cpython. EPSS estimates a 0.37% chance of exploitation in the next 30 days, higher than 29.3% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 9 · Related 8Timeline
- 28-07-2026PublishedVulnerability first disclosed.
- 13-08-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 8 sources · 2 versions- OSV · AlpineEcosystem advisory · calculated2.0LowCVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · UbuntuEcosystem advisory · calculated2.0LowCVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · DebianEcosystem advisory · calculated2.0LowCVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · WolfiEcosystem advisory · calculated2.0LowCVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated2.0LowCVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- NVDNIST2.0LowCVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.37%
Chance of exploitation in the next 30 days
Percentile
29%
Versus all other CVEs
30-day change
0.00 pp
From 0.37% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Redhat46 products
- python-unversioned-command< 0:3.14.6-2.2.hum1
- python3< 0:3.14.6-2.2.hum1
- python3-debug< 0:3.14.6-2.2.hum1
- python3-devel< 0:3.14.6-2.2.hum1
- python3-idle< 0:3.14.6-2.2.hum1
Ubuntu12 products
- pypy3All versions (No fix recorded)
- python2.7All versions (No fix recorded)
- python3.10All versions (No fix recorded)
- python3.11All versions (No fix recorded)
- python3.12All versions (No fix recorded)
Chainguard5 products
- python-3.10< 3.10.21-r0
- python-3.11< 3.11.16-r0
- python-3.12< 3.12.14-r0
- python-3.13< 3.13.15-r0
- python-3.14< 3.14.7-r0
Wolfi5 products
- python-3.10< 3.10.21-r0
- python-3.11< 3.11.16-r0
- python-3.12< 3.12.14-r0
- python-3.13< 3.13.15-r0
- python-3.14< 3.14.7-r0
Debian4 products
- pypy3All versions (No fix recorded) | < 8.0.0+dfsg-1
- python3.11All versions (No fix recorded)
- python3.13< 3.13.5-2+deb13u5 | < 3.13.15-1
- python3.14< 3.14.7-1
Alpine1 product
- python3< 3.14.7-r0
Python software foundation1 product
- cpython< 3.10.21 | ≥ 3.11.0, < 3.11.16 | ≥ 3.12.0, < 3.12.14 | ≥ 3.13.0, < 3.13.15 | ≥ 3.14.0, < 3.14.7 | ≥ 3.15.0a1, < 3.15.0rc1
7 vendors · 74 products
References
31 links- mail.python.org/archives/list/security-announce@python.org/thread/7YMZ6DDZVR26TJJBVO3RDNBAVGHNYAKR/Vendor AdvisoryARTICLEREPORTAdvisory
Show all 31 references
- images.redhat.comARTICLE
- github.com/python/cpythonPACKAGE