# CVE-2025-13836: Excessive read buffering DoS in http.client

> A malicious server can cause a Python HTTP client to exhaust memory by sending large responses, leading to denial of service.

- **Severity:** Medium 6.3 (`CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 1 Dec 2025
- **Updated:** 3 Mar 2026
- **Also known as:** ALSA-2026:2419, AZL-109689, AZL-71264, BELL-CVE-2025-13836, BIT-libpython-2025-13836, BIT-python-2025-13836, BIT-python-min-2025-13836, CLSA-2026-1768412660, CLSA-2026-1768480470, DEBIAN-CVE-2025-13836, ECHO-f3fc-ad65-9711, GHSA-399h-rrqc-rpgv, MINI-2g48-5p3q-f6fj, MINI-c9q9-8442-rf8x, MINI-f8jp-r88j-8rfj, MINI-r259-ggrx-8x6c, MINI-vmg4-g3vv-jfq4, PSF-2025-14, RHSA-2026:2419, RHSA-2026:3897, RHSA-2026:3900, RLSA-2026:2419, UBUNTU-CVE-2025-13836, USN-7951-1

## What is CVE-2025-13836?

CVE-2025-13836 is a medium-severity denial of service vulnerability in Python Python, published on 1 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official 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.

Weakness: CWE-400 (Uncontrolled Resource Consumption)

## Which versions are affected by CVE-2025-13836?

3 open source packages ship an affected version, including libpython, python and python-min. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `libpython` | Bitnami | All versions | 3.10.20, 3.11.15, 3.12.13, 3.13.11, 3.14.1 |
| `python` | Bitnami | All versions | 3.10.20, 3.11.15, 3.12.13, 3.13.11, 3.14.1 |
| `python-min` | Bitnami | All versions | 3.10.20, 3.11.15, 3.12.13, 3.13.11, 3.14.1 |
| `python3.12` | AlmaLinux:8 | All versions | 3.12.12-2.el8_10 |
| `python3.12-debug` | AlmaLinux:8 | All versions | 3.12.12-2.el8_10 |
| `python3.12-devel` | AlmaLinux:8 | All versions | 3.12.12-2.el8_10 |
| `python3.12-idle` | AlmaLinux:8 | All versions | 3.12.12-2.el8_10 |
| `python3.12-libs` | AlmaLinux:8 | All versions | 3.12.12-2.el8_10 |
| `python3.12-rpm-macros` | AlmaLinux:8 | All versions | 3.12.12-2.el8_10 |
| `python3.12-test` | AlmaLinux:8 | All versions | 3.12.12-2.el8_10 |
| `python3.12-tkinter` | AlmaLinux:8 | All versions | 3.12.12-2.el8_10 |
| `python3.12` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.12.12-2.el8_10 |
| `python3.12-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.12.12-2.el8_10 |
| `python3.12-debugsource` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.12.12-2.el8_10 |
| `python3.12-devel` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.12.12-2.el8_10 |
| `python3.12-libs` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.12.12-2.el8_10 |
| `python3.12-rpm-macros` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.12.12-2.el8_10 |
| `python3.12-tkinter` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.12.12-2.el8_10 |
| `python3.12` | Red Hat:enterprise_linux:8::crb | All versions | 0:3.12.12-2.el8_10 |
| `python3.12-debug` | Red Hat:enterprise_linux:8::crb | All versions | 0:3.12.12-2.el8_10 |
| `python3.12-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:3.12.12-2.el8_10 |
| `python3.12-debugsource` | Red Hat:enterprise_linux:8::crb | All versions | 0:3.12.12-2.el8_10 |
| `python3.12-idle` | Red Hat:enterprise_linux:8::crb | All versions | 0:3.12.12-2.el8_10 |
| `python3.12-test` | Red Hat:enterprise_linux:8::crb | All versions | 0:3.12.12-2.el8_10 |
| `python3.12-tkinter` | Red Hat:enterprise_linux:8::crb | All versions | 0:3.12.12-2.el8_10 |
| `python3.12` | Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.12.1-4.el9_4.10 |
| `python3.12-debuginfo` | Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.12.1-4.el9_4.10 |
| `python3.12-debugsource` | Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.12.1-4.el9_4.10 |
| `python3.12-devel` | Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.12.1-4.el9_4.10 |
| `python3.12-libs` | Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.12.1-4.el9_4.10 |
| `python3.12-tkinter` | Red Hat:rhel_eus:9.4::appstream | All versions | 0:3.12.1-4.el9_4.10 |
| `python3.12` | Red Hat:rhel_eus:9.4::crb | All versions | 0:3.12.1-4.el9_4.10 |
| `python3.12-debug` | Red Hat:rhel_eus:9.4::crb | All versions | 0:3.12.1-4.el9_4.10 |
| `python3.12-debuginfo` | Red Hat:rhel_eus:9.4::crb | All versions | 0:3.12.1-4.el9_4.10 |
| `python3.12-debugsource` | Red Hat:rhel_eus:9.4::crb | All versions | 0:3.12.1-4.el9_4.10 |
| `python3.12-idle` | Red Hat:rhel_eus:9.4::crb | All versions | 0:3.12.1-4.el9_4.10 |
| `python3.12-test` | Red Hat:rhel_eus:9.4::crb | All versions | 0:3.12.1-4.el9_4.10 |
| `python3.12-tkinter` | Red Hat:rhel_eus:9.4::crb | All versions | 0:3.12.1-4.el9_4.10 |
| `python3.12` | Red Hat:rhel_eus:9.6::appstream | All versions | 0:3.12.9-1.el9_6.5 |
| `python3.12-debuginfo` | Red Hat:rhel_eus:9.6::appstream | All versions | 0:3.12.9-1.el9_6.5 |

Products: Python Python.

## How do I fix CVE-2025-13836?

Upgrade libpython to a fixed version for your release line: 3.10.20, 3.11.15, 3.12.13 or 3.13.11.

## Is CVE-2025-13836 being exploited?

There is no known exploitation of CVE-2025-13836 in the wild and no public exploit code.

## Other vulnerabilities in Python Python

- [CVE-2008-5031](https://insights.sbomify.com/CVE-2008-5031/): Integer overflow in n/a (critical 10.0)
- [CVE-2014-4650](https://insights.sbomify.com/CVE-2014-4650/): Path traversal in n/a (critical 9.8)
- [CVE-2016-5636](https://insights.sbomify.com/CVE-2016-5636/): Integer overflow in n/a (critical 9.8)
- [CVE-2007-4559](https://insights.sbomify.com/CVE-2007-4559/): Path traversal in n/a (critical 9.8)
- [CVE-2017-17522](https://insights.sbomify.com/CVE-2017-17522/): Command injection in n/a (high 8.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-13836 and fix it if it is affected.

What it is: CVE-2025-13836 is a medium-severity denial of service vulnerability in Python Python, published on 1 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2025-13836 in the wild and no public exploit code.

Affected packages and fixed versions:
- libpython (Bitnami): affected all versions; fixed in 3.10.20, 3.11.15, 3.12.13, 3.13.11, 3.14.1
- python (Bitnami): affected all versions; fixed in 3.10.20, 3.11.15, 3.12.13, 3.13.11, 3.14.1
- python-min (Bitnami): affected all versions; fixed in 3.10.20, 3.11.15, 3.12.13, 3.13.11, 3.14.1

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-13836/ (Markdown: https://insights.sbomify.com/CVE-2025-13836/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-13836
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-13836
- OSV: https://osv.dev/vulnerability/CVE-2025-13836

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-13836/
Summaries are generated and may contain mistakes; the official description above is the record.
