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
CVE-2026-5713 is a stack-based buffer overflow vulnerability in CPython's profiling.sampling module (introduced in Python 3.15 and later) and asyncio introspection capabilities (available since Python 3.14). This flaw allows an attacker controlling a malicious Python process to read and write memory addresses in a privileged process if that process connects to the attacker via the remote debugging feature. Exploitation demands repeated and persistent connection attempts, as the target process is likely to crash frequently due to Address Space Layout Randomization (ASLR). No official remediation or patch has been published yet. The vulnerability affects exactly versions 3.14.0, 3.15.0, and 3.15.0a1 of CPython.
Potential Impact
Successful exploitation could lead to unauthorized memory read and write access in a privileged Python process, potentially enabling privilege escalation or code execution. However, exploitation is difficult due to the need for persistent connection attempts and the high likelihood of process crashes caused by ASLR. There are no known exploits in the wild at this time.
Mitigation Recommendations
No official patch or remediation has been published by the Python Software Foundation as of the current advisory. Users should monitor the vendor advisory for updates. Until a fix is available, avoid exposing privileged Python processes to untrusted remote debugging connections, and restrict access to debugging features to trusted environments only.
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.
CVSS v4.0
Score 5.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-5713 is a stack-based buffer overflow vulnerability in CPython's profiling.sampling module (introduced in Python 3.15 and later) and asyncio introspection capabilities (available since Python 3.14). This flaw allows an attacker controlling a malicious Python process to read and write memory addresses in a privileged process if that process connects to the attacker via the remote debugging feature. Exploitation demands repeated and persistent connection attempts, as the target process is likely to crash frequently due to Address Space Layout Randomization (ASLR). No official remediation or patch has been published yet. The vulnerability affects exactly versions 3.14.0, 3.15.0, and 3.15.0a1 of CPython.
Potential Impact
Successful exploitation could lead to unauthorized memory read and write access in a privileged Python process, potentially enabling privilege escalation or code execution. However, exploitation is difficult due to the need for persistent connection attempts and the high likelihood of process crashes caused by ASLR. There are no known exploits in the wild at this time.
Mitigation Recommendations
No official patch or remediation has been published by the Python Software Foundation as of the current advisory. Users should monitor the vendor advisory for updates. Until a fix is available, avoid exposing privileged Python processes to untrusted remote debugging connections, and restrict access to debugging features to trusted environments only.
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: 04/14/2026, 15:32:01 UTC
Last enriched: 07/31/2026, 19:50:55 UTC
Last updated: 07/31/2026, 19:50:55 UTC
Views: 208
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.