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…

CVE-2025-13836: Vulnerability in Python Software Foundation CPython

0
Medium
VulnerabilityCVE-2025-13836cvecve-2025-13836
Published: Mon Dec 01 2025 (12/01/2025, 18:02:38 UTC)
Source: CVE Database V5
Vendor/Project: Python Software Foundation
Product: CPython

Description

When reading an HTTP response from a server, if no read amount is specified, the default behavior will be to use Content-Length. This allows a malicious server to cause the client to read large amounts of data into memory, potentially causing OOM or other DoS.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/03/2026, 18:31:56 UTC

Technical Analysis

CVE-2025-13836 is a resource exhaustion vulnerability classified under CWE-400 affecting the Python Software Foundation's CPython interpreter. The vulnerability occurs in the HTTP response reading logic: when no explicit read amount is specified, CPython defaults to using the Content-Length header to determine how much data to read into memory. A malicious HTTP server can exploit this behavior by sending a response with an excessively large Content-Length value, causing the client to allocate large amounts of memory. This can lead to out-of-memory (OOM) conditions or denial of service (DoS) by exhausting system resources. The vulnerability affects a broad range of CPython versions, including 3.11.0 through 3.15.0a1, as well as version 0 (likely a placeholder or early version). The CVSS 4.0 base score is 6.3 (medium severity), reflecting network attack vector, low attack complexity, no privileges or user interaction required, and limited impact on availability. No known exploits have been reported yet, and no official patches are linked at the time of publication. The flaw is significant because many applications and services rely on CPython for HTTP communication, making them susceptible to remote DoS attacks if they do not implement additional safeguards.

Potential Impact

The primary impact of CVE-2025-13836 is denial of service through resource exhaustion. Organizations running applications or services that use vulnerable CPython versions for HTTP client operations may experience crashes or degraded performance due to excessive memory consumption triggered by malicious HTTP servers. This can disrupt critical services, degrade user experience, and potentially cause cascading failures in dependent systems. Since the vulnerability can be exploited remotely without authentication or user interaction, it poses a risk to exposed services communicating over HTTP. The scope includes any environment using affected CPython versions, including web servers, API clients, automation scripts, and embedded Python applications. While the vulnerability does not directly compromise confidentiality or integrity, the availability impact can be severe, especially in high-load or resource-constrained environments.

Mitigation Recommendations

To mitigate CVE-2025-13836, organizations should: 1) Upgrade CPython to a patched version once available from the Python Software Foundation. 2) Implement application-level limits on the maximum amount of data read from HTTP responses, overriding default behaviors that rely solely on Content-Length. 3) Use HTTP client libraries or wrappers that enforce strict limits on response sizes and timeouts to prevent excessive memory allocation. 4) Employ network-level protections such as web application firewalls (WAFs) or intrusion prevention systems (IPS) to detect and block anomalous HTTP responses with suspiciously large Content-Length headers. 5) Monitor application logs and system metrics for signs of memory exhaustion or abnormal HTTP response sizes. 6) Consider sandboxing or resource-limiting containers for Python applications to contain potential DoS impacts. These steps go beyond generic advice by focusing on controlling memory allocation behavior and network filtering specific to this vulnerability.

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
2025-12-01T17:54:40.759Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 692ddb371fcc71981e81acee

Added to database: 12/1/2025, 6:15:19 PM

Last enriched: 3/3/2026, 6:31:56 PM

Last updated: 3/24/2026, 3:47:06 AM

Views: 561

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