CVE-2025-13836: Vulnerability in Python Software Foundation CPython
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 Analysis
Technical Summary
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.
Affected Countries
United States, Germany, United Kingdom, France, Japan, South Korea, India, China, Canada, Australia
CVE-2025-13836: Vulnerability in Python Software Foundation 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
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.
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 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.