CVE-2026-5713: CWE-121 Stack-based buffer overflow in Python Software Foundation CPython
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.
AI Analysis
Technical Summary
This vulnerability in CPython 3.14.0 arises from the remote debugging feature, which can be exploited to perform stack-based buffer overflow attacks (CWE-121) and potentially out-of-bounds read/write (CWE-125) on privileged processes. An attacker must repeatedly connect to the target process via the remote debugging interface to exploit this flaw, despite frequent crashes caused by address space layout randomization (ASLR). The CVSS 4.0 base score is 5.3, reflecting medium severity with local attack vector, high attack complexity, and partial user interaction required. No patch or official remediation level has been provided by the Python Software Foundation as of the publication date.
Potential Impact
Successful exploitation could allow an attacker to read and write memory addresses in a privileged process, potentially leading to privilege escalation or arbitrary code execution. However, exploitation is complicated by the need for persistent connection attempts and the instability caused by ASLR, which likely causes frequent crashes of the attacking process.
Mitigation Recommendations
Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Until an official fix is released, avoid enabling or using the remote debugging feature in privileged contexts, and restrict access to debugging interfaces to trusted users and environments.
CVE-2026-5713: CWE-121 Stack-based buffer overflow in Python Software Foundation CPython
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in CPython 3.14.0 arises from the remote debugging feature, which can be exploited to perform stack-based buffer overflow attacks (CWE-121) and potentially out-of-bounds read/write (CWE-125) on privileged processes. An attacker must repeatedly connect to the target process via the remote debugging interface to exploit this flaw, despite frequent crashes caused by address space layout randomization (ASLR). The CVSS 4.0 base score is 5.3, reflecting medium severity with local attack vector, high attack complexity, and partial user interaction required. No patch or official remediation level has been provided by the Python Software Foundation as of the publication date.
Potential Impact
Successful exploitation could allow an attacker to read and write memory addresses in a privileged process, potentially leading to privilege escalation or arbitrary code execution. However, exploitation is complicated by the need for persistent connection attempts and the instability caused by ASLR, which likely causes frequent crashes of the attacking process.
Mitigation Recommendations
Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Until an official fix is released, avoid enabling or using the remote debugging feature in privileged contexts, and restrict access to debugging interfaces to trusted users and environments.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PSF
- Date Reserved
- 2026-04-06T17:16:14.111Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69de5df182d89c981fb975c1
Added to database: 4/14/2026, 3:32:01 PM
Last enriched: 4/14/2026, 3:47:34 PM
Last updated: 4/14/2026, 4:40:07 PM
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.