Skip to main content
VulnerabilityPublished Updated

CVE-2026-6879: Python Software Foundation CPython · CWE-407

Affects Python Software Foundation CPythonSource CVE Database V5

0

Not known to be exploited · CVSS 2.0 Low · fixed in 3.15.0rc1 : update Python Software Foundation CPython when convenient.

Data as of 26 Oct 2026, 17:16 UTC

CVSS 4.0 base score
2.0Low
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 28% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.15.0rc1, 3.14.7, 3.13.15 +3
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 28 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Python Software FoundationCPythonAffected
  • >=3.15.0a1 <3.15.0rc1
Fixed in
  • 3.15.0rc1
Python Software FoundationCPythonAffected
  • >=3.14.0 <3.14.7
Fixed in
  • 3.14.7
Python Software FoundationCPythonAffected
  • >=3.13.0 <3.13.15
Fixed in
  • 3.13.15
Python Software FoundationCPythonAffected
  • >=3.12.0 <3.12.14
Fixed in
  • 3.12.14
Python Software FoundationCPythonAffected
  • >=3.11.0 <3.11.16
Fixed in
  • 3.11.16
Python Software FoundationCPythonAffected
  • <3.10.21
Fixed in
  • 3.10.21

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

If you cannot patch yet, users should consider avoiding XPath index predicates on large XML documents or limit the size of sibling elements when using Element.findall() or Element.iterfind().

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.

References

Community reviews

Loading reviews…