Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 97%

CVE-2026-5713: CWE-121 Stack-based buffer overflow in Python Software Foundation CPython

0
Medium
VulnerabilityCVE-2026-5713cvecve-2026-5713cwe-121cwe-125gcve
Published: 04/14/2026 (04/14/2026, 15:11:51 UTC)
Source: CVE Database V5
Vendor/Project: Python Software Foundation
Product: 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

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
High
User Interaction
Active
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:H/AT:P/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Affected software

cpython
pkg:pypi/cpython
Affected versions
=3.14.0=3.15.0

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

AILast updated: 07/31/2026, 19:50:55 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses