{"answers":{"affected":"3 open source packages ship an affected version, including libpython, python and python-min.","exploited":"There is no known exploitation of CVE-2026-6879 in the wild and no public exploit code.","fix":"Upgrade libpython to a fixed version for your release line: 3.10.21, 3.11.16, 3.12.14 or 3.13.15.","what":"CVE-2026-6879 is a low-severity denial of service vulnerability in CPython, published on 28 Jul 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-6879 and fix it if it is affected.\n\nWhat it is: CVE-2026-6879 is a low-severity denial of service vulnerability in CPython, published on 28 Jul 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-6879 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- libpython (Bitnami): affected all versions; fixed in 3.10.21, 3.11.16, 3.12.14, 3.13.15, 3.14.7\n- python (Bitnami): affected all versions; fixed in 3.10.21, 3.11.16, 3.12.14, 3.13.15, 3.14.7\n- python-min (Bitnami): affected all versions; fixed in 3.10.21, 3.11.16, 3.12.14, 3.13.15, 3.14.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-6879/ (Markdown: https://insights.sbomify.com/CVE-2026-6879/index.md)","id":"CVE-2026-6879","markdown":"https://insights.sbomify.com/CVE-2026-6879/index.md","name":"CVE-2026-6879","record":{"aliases":["ALPINE-CVE-2026-6879","AZL-94157","AZL-94299","BELL-CVE-2026-6879","BIT-libpython-2026-6879","BIT-python-2026-6879","BIT-python-min-2026-6879","DEBIAN-CVE-2026-6879","ECHO-b4f7-133a-6293","GHSA-77qw-3xm6-r2pp","MINI-55xp-2jm7-3qfv","MINI-852j-mq6w-2jrf","MINI-9c36-jq5h-fq7v","MINI-mhm7-2xm2-wqh7","MINI-wqr5-3qfj-vp55","OESA-2026-3252","OESA-2026-3253","OESA-2026-3396","OESA-2026-3433","PSF-2026-34","RHSA-2026:48238","RHSA-2026:48246","RHSA-2026:48253","RHSA-2026:48278","RHSA-2026:48279","UBUNTU-CVE-2026-6879"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python standard library","requires_auth":"high_privilege","summary":"Attackers can cause denial of service in Python applications by crafting XML documents that trigger quadratic time complexity in ElementPath index predicates.","user_interaction":"required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PSF","cpe":[],"cvss":{"score":2,"severity":"low","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"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.","ecosystems":["Bitnami","Red Hat:hummingbird:1"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Quadratic Behavior in xml.etree.ElementPath Index Predicates","id":"CVE-2026-6879","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":49,"n_references":10,"next":{"headline":"SQL injection in Advance Web","id":"CVE-2026-6881"},"packages":[{"ecosystem":"Bitnami","fixed":["3.10.21","3.11.16","3.12.14","3.13.15","3.14.7"],"introduced":["0","3.11.0","3.12.0","3.13.0","3.14.0"],"last_affected":[],"package":"libpython","purl":"pkg:bitnami/libpython","source":"BIT-libpython-2026-6879"},{"ecosystem":"Bitnami","fixed":["3.10.21","3.11.16","3.12.14","3.13.15","3.14.7"],"introduced":["0","3.11.0","3.12.0","3.13.0","3.14.0"],"last_affected":[],"package":"python","purl":"pkg:bitnami/python","source":"BIT-python-2026-6879"},{"ecosystem":"Bitnami","fixed":["3.10.21","3.11.16","3.12.14","3.13.15","3.14.7"],"introduced":["0","3.11.0","3.12.0","3.13.0","3.14.0"],"last_affected":[],"package":"python-min","purl":"pkg:bitnami/python-min","source":"BIT-python-min-2026-6879"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.6-2.2.hum1"],"introduced":["0"],"last_affected":[],"package":"python-unversioned-command","purl":"pkg:rpm/redhat/python-unversioned-command","source":"RHSA-2026:48238"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.6-2.2.hum1"],"introduced":["0"],"last_affected":[],"package":"python3","purl":"pkg:rpm/redhat/python3","source":"RHSA-2026:48238"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.6-2.2.hum1"],"introduced":["0"],"last_affected":[],"package":"python3-debug","purl":"pkg:rpm/redhat/python3-debug","source":"RHSA-2026:48238"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.6-2.2.hum1"],"introduced":["0"],"last_affected":[],"package":"python3-devel","purl":"pkg:rpm/redhat/python3-devel","source":"RHSA-2026:48238"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.6-2.2.hum1"],"introduced":["0"],"last_affected":[],"package":"python3-idle","purl":"pkg:rpm/redhat/python3-idle","source":"RHSA-2026:48238"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.6-2.2.hum1"],"introduced":["0"],"last_affected":[],"package":"python3-libs","purl":"pkg:rpm/redhat/python3-libs","source":"RHSA-2026:48238"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.6-2.2.hum1"],"introduced":["0"],"last_affected":[],"package":"python3-test","purl":"pkg:rpm/redhat/python3-test","source":"RHSA-2026:48238"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.14.6-2.2.hum1"],"introduced":["0"],"last_affected":[],"package":"python3-tkinter","purl":"pkg:rpm/redhat/python3-tkinter","source":"RHSA-2026:48238"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.10.20-3.2.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.10","purl":"pkg:rpm/redhat/python3.10","source":"RHSA-2026:48246"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.10.20-3.2.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.10-debug","purl":"pkg:rpm/redhat/python3.10-debug","source":"RHSA-2026:48246"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.10.20-3.2.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.10-devel","purl":"pkg:rpm/redhat/python3.10-devel","source":"RHSA-2026:48246"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.10.20-3.2.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.10-idle","purl":"pkg:rpm/redhat/python3.10-idle","source":"RHSA-2026:48246"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.10.20-3.2.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.10-libs","purl":"pkg:rpm/redhat/python3.10-libs","source":"RHSA-2026:48246"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.10.20-3.2.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.10-test","purl":"pkg:rpm/redhat/python3.10-test","source":"RHSA-2026:48246"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.10.20-3.2.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.10-tkinter","purl":"pkg:rpm/redhat/python3.10-tkinter","source":"RHSA-2026:48246"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.11.15-5.5.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.11","purl":"pkg:rpm/redhat/python3.11","source":"RHSA-2026:48253"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.11.15-5.5.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.11-debug","purl":"pkg:rpm/redhat/python3.11-debug","source":"RHSA-2026:48253"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.11.15-5.5.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.11-devel","purl":"pkg:rpm/redhat/python3.11-devel","source":"RHSA-2026:48253"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.11.15-5.5.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.11-idle","purl":"pkg:rpm/redhat/python3.11-idle","source":"RHSA-2026:48253"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.11.15-5.5.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.11-libs","purl":"pkg:rpm/redhat/python3.11-libs","source":"RHSA-2026:48253"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.11.15-5.5.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.11-test","purl":"pkg:rpm/redhat/python3.11-test","source":"RHSA-2026:48253"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.11.15-5.5.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.11-tkinter","purl":"pkg:rpm/redhat/python3.11-tkinter","source":"RHSA-2026:48253"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.12.13-3.8.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.12","purl":"pkg:rpm/redhat/python3.12","source":"RHSA-2026:48279"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.12.13-3.8.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.12-debug","purl":"pkg:rpm/redhat/python3.12-debug","source":"RHSA-2026:48279"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.12.13-3.8.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.12-devel","purl":"pkg:rpm/redhat/python3.12-devel","source":"RHSA-2026:48279"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.12.13-3.8.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.12-idle","purl":"pkg:rpm/redhat/python3.12-idle","source":"RHSA-2026:48279"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.12.13-3.8.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.12-libs","purl":"pkg:rpm/redhat/python3.12-libs","source":"RHSA-2026:48279"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.12.13-3.8.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.12-test","purl":"pkg:rpm/redhat/python3.12-test","source":"RHSA-2026:48279"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.12.13-3.8.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.12-tkinter","purl":"pkg:rpm/redhat/python3.12-tkinter","source":"RHSA-2026:48279"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.13.14-1.7.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.13","purl":"pkg:rpm/redhat/python3.13","source":"RHSA-2026:48278"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.13.14-1.7.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.13-debug","purl":"pkg:rpm/redhat/python3.13-debug","source":"RHSA-2026:48278"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.13.14-1.7.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.13-devel","purl":"pkg:rpm/redhat/python3.13-devel","source":"RHSA-2026:48278"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.13.14-1.7.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.13-freethreading","purl":"pkg:rpm/redhat/python3.13-freethreading","source":"RHSA-2026:48278"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.13.14-1.7.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.13-freethreading-debug","purl":"pkg:rpm/redhat/python3.13-freethreading-debug","source":"RHSA-2026:48278"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.13.14-1.7.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.13-idle","purl":"pkg:rpm/redhat/python3.13-idle","source":"RHSA-2026:48278"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.13.14-1.7.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.13-libs","purl":"pkg:rpm/redhat/python3.13-libs","source":"RHSA-2026:48278"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:3.13.14-1.7.hum1"],"introduced":["0"],"last_affected":[],"package":"python3.13-test","purl":"pkg:rpm/redhat/python3.13-test","source":"RHSA-2026:48278"}],"prev":{"headline":"ByteDance verl grader.py math_equal sandbox","id":"CVE-2026-6878"},"products":["CPython"],"published":"2026-07-28","related":[],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-13","vendors":["Python Software Foundation"]},"summary":"Attackers can cause denial of service in Python applications by crafting XML documents that trigger quadratic time complexity in ElementPath index predicates.","url":"https://insights.sbomify.com/CVE-2026-6879/"}