CVE-2025-13836: When reading an HTTP response from a server, if no read amount is specified, the default behavior will be to use Content-Length.
High CVSS 7.5
- CVE id
- CVE-2025-13836
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Python Runtimes and servers |
< 3.10.20 >= 3.11.0, < 3.11.15 >= 3.12.0, < 3.12.13 >= 3.13.0, < 3.13.11 |
3.10.20, 3.11.15, 3.12.13, 3.13.11 |
How to fix it
Upgrade Python to the fixed release of the line you run: 3.10.20, 3.11.15, 3.12.13, 3.13.11.
python --version
- Install the patched Python release of your minor line (pyenv, the python image tag, or your OS packages) and recreate virtual environments.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2025-13836 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-13836
- Web: https://github.com/python/cpython/commit/14b1fdb0a94b96f86fc7b86671ea9582b8676628
- Web: https://github.com/python/cpython/commit/289f29b0fe38baf2d7cb5854f4bb573cc34a6a15
- Web: https://github.com/python/cpython/commit/4ce27904b597c77d74dd93f2c912676021a99155
- Web: https://github.com/python/cpython/commit/5a4c4a033a4a54481be6870aa1896fad732555b5
- Web: https://github.com/python/cpython/commit/5dc101675fd22918facbbe0fecdc821502beaaf0
- Web: https://github.com/python/cpython/commit/afc40bdd3dd71f343fd9016f6d8eebbacbd6587c
- Web: https://github.com/python/cpython/issues/119451
- Web: https://github.com/python/cpython/pull/119454
- Web: https://mail.python.org/archives/list/security-announce@python.org/thread/OQ6G7MKRQIS3OAREC3HNG3D2DPOU34XO/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.