CVE-2026-5713: CWE-121 Stack-based buffer overflow in Python Software Foundation CPython
CVE-2026-5713 is a medium severity stack-based buffer overflow vulnerability in the Python Software Foundation's CPython implementation affecting version 3. 14. 0. It involves the profiling. sampling module (3. 15+) and asyncio introspection features (3. 14+) that can be exploited via the remote debugging feature. An attacker controlling a malicious Python process can repeatedly connect to a privileged process to read and write memory addresses, potentially leading to memory corruption. Exploitation requires persistent and repeated connections and is complicated by ASLR and frequent crashes of the attacking process. No official patch or remediation guidance is currently available.
AI Analysis
Technical Summary
This vulnerability in CPython 3.14.0 and later affects the profiling.sampling module and asyncio introspection capabilities used with remote debugging. It allows a local attacker with high privileges to repeatedly connect to a privileged Python process and perform out-of-bounds memory reads and writes due to a stack-based buffer overflow (CWE-121) and related memory access issues (CWE-125). The attack requires persistent connection attempts and is mitigated somewhat by address space layout randomization (ASLR) and instability of the attacking process. No vendor advisory or patch has been published yet.
Potential Impact
Successful exploitation could allow a local attacker with high privileges to read and write memory addresses in a privileged Python process, potentially leading to memory corruption or privilege escalation. However, exploitation is difficult due to the need for repeated connections and the likelihood of crashing the attacking process. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Until a fix is available, avoid enabling or exposing the remote debugging feature in privileged Python processes, and limit access to trusted users only.
CVE-2026-5713: CWE-121 Stack-based buffer overflow in Python Software Foundation CPython
Description
CVE-2026-5713 is a medium severity stack-based buffer overflow vulnerability in the Python Software Foundation's CPython implementation affecting version 3. 14. 0. It involves the profiling. sampling module (3. 15+) and asyncio introspection features (3. 14+) that can be exploited via the remote debugging feature. An attacker controlling a malicious Python process can repeatedly connect to a privileged process to read and write memory addresses, potentially leading to memory corruption. Exploitation requires persistent and repeated connections and is complicated by ASLR and frequent crashes of the attacking process. No official patch or remediation guidance is currently available.
CVSS v4.0
Score 5.3medium
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in CPython 3.14.0 and later affects the profiling.sampling module and asyncio introspection capabilities used with remote debugging. It allows a local attacker with high privileges to repeatedly connect to a privileged Python process and perform out-of-bounds memory reads and writes due to a stack-based buffer overflow (CWE-121) and related memory access issues (CWE-125). The attack requires persistent connection attempts and is mitigated somewhat by address space layout randomization (ASLR) and instability of the attacking process. No vendor advisory or patch has been published yet.
Potential Impact
Successful exploitation could allow a local attacker with high privileges to read and write memory addresses in a privileged Python process, potentially leading to memory corruption or privilege escalation. However, exploitation is difficult due to the need for repeated connections and the likelihood of crashing the attacking process. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Until a fix is available, avoid enabling or exposing the remote debugging feature in privileged Python processes, and limit access to trusted users 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: 4/14/2026, 3:32:01 PM
Last enriched: 4/22/2026, 6:43:34 AM
Last updated: 5/28/2026, 6:43:57 AM
Views: 122
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.