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

AILast updated: 01/26/2026, 19:19:25 UTC

Technical Analysis

CVE-2025-13836 is a vulnerability identified in the Python Software Foundation's CPython implementation, specifically affecting versions 0 through 3.15.0a1. The issue occurs during the processing of HTTP responses when the client code does not specify the amount of data to read. In such cases, 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 artificially large Content-Length value, causing the client to allocate a correspondingly large buffer. This can lead to excessive memory consumption, resulting in an out-of-memory (OOM) condition or denial of service (DoS) on the client side. The vulnerability is classified under CWE-400 (Uncontrolled Resource Consumption). The CVSS v4.0 base score is 6.3, reflecting a medium severity level, with an attack vector of network (remote), low attack complexity, no privileges or user interaction required, and limited impact on confidentiality and integrity but significant impact on availability. No patches or known exploits are currently reported, but the vulnerability is publicly disclosed and should be addressed proactively. The flaw primarily affects applications and services that use CPython to handle HTTP responses, especially those that do not explicitly limit read sizes or validate Content-Length headers.

Potential Impact

For European organizations, the primary impact of CVE-2025-13836 is the risk of denial of service through resource exhaustion. Applications, services, or automated systems that rely on CPython for HTTP communication could be forced into OOM conditions by malicious or compromised servers, leading to service outages or degraded performance. This can affect web clients, API consumers, or any Python-based networked applications. The impact on confidentiality and integrity is minimal, but availability disruptions can have cascading effects on business operations, especially in sectors dependent on continuous service availability such as finance, healthcare, and critical infrastructure. Organizations with large-scale Python deployments or those integrating third-party HTTP services are particularly at risk. Additionally, the vulnerability could be leveraged as part of a broader attack chain to disrupt operations or distract from other malicious activities.

Mitigation Recommendations

To mitigate CVE-2025-13836, European organizations should first ensure they upgrade CPython to a version where this vulnerability is patched once available. In the interim, developers should explicitly specify read sizes when handling HTTP responses instead of relying on default Content-Length behavior. Implementing strict validation of Content-Length headers and enforcing maximum allowable sizes can prevent excessive memory allocation. Employing network-level protections such as rate limiting, web application firewalls (WAFs), and anomaly detection can help identify and block malicious servers attempting to exploit this flaw. Additionally, containerization and resource limits (e.g., cgroups or Kubernetes resource quotas) can contain the impact of potential OOM conditions. Monitoring application logs for unusual memory usage or crashes related to HTTP reads can provide early warning signs. Finally, educating developers about secure HTTP client practices and reviewing third-party libraries for similar vulnerabilities is recommended.

Need more detailed analysis?Upgrade to Pro Console

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: 1/26/2026, 7:19:25 PM

Last updated: 2/7/2026, 2:05:55 AM

Views: 495

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 in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats