CVE-2026-5713: Python Software Foundation CPython · Stack-based Buffer Overflow
Affects Python Software Foundation CPythonSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium : upgrade to 3.15.0b1 or 3.14.5 when convenient.
Data as of 30 Oct 2026, 06:59 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 2% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.15.0b1, 3.14.5
CVSS:4.0/AV:L/AC:H/AT:P/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 14 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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 29 Oct 2026.
What to do
Upgrade Python Software Foundation CPython to 3.15.0b1 or 3.14.5.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
PyPIcpythonpkg:pypi/cpythonOther threats | Affected
| Fixed in– |
GitHubCPythonpkg:github/CPythonOther threats | Affected
| Fixed in
|
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, avoid exposing privileged Python processes to untrusted remote debugging connections, and restrict access to debugging features to trusted environments only.
Description
The "profiling.sampling" module (Python 3.15+) and "asyncio introspection capabilities" (3.14+, "python -m asyncio ps" and "python -m asyncio pstree") features could be used to read and write addresses in a privileged process if that process connected to a malicious or "infected" Python process via the remote debugging feature. This vulnerability requires persistently and repeatedly connecting to the process to be exploited, even after the connecting process crashes with high likelihood due to ASLR.
References
- github.com/python/cpython/pull/148187 (opens in a new tab)
- github.com/python/cpython/issues/148178 (opens in a new tab)
- mail.python.org/archives/list/security-announce@python.org/thread/OG4RHARYSNIE22GGOMVMCRH76L5HKPLM/ (opens in a new tab)
- github.com/python/cpython/commit/289fd2c97a7e5aecb8b69f94f5e838ccfeee7e67 (opens in a new tab)
- github.com/python/cpython/commit/316f6265b7f9ca4ffed5346b747475ef1943f35d (opens in a new tab)
- openwall.com/lists/oss-security/2026/04/15/6 (opens in a new tab)