CVE-2025-13836
JSON

6.3medium

Excessive read buffering DoS in http.client

Severity
6.3medium CVSS:4.0 by PSF
Exploit likelihood
1.75% (higher than 78% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
PSF
Also known as
PSF-2025-14BIT-LIBPYTHON-2025-13836BIT-PYTHON-2025-13836BIT-PYTHON-MIN-2025-13836

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.

Affected

Product or packageVersionsReported by
Python Software Foundation CPythonbefore 3.10.20, from 3.11.0 before 3.11.15, from 3.12.0 before 3.12.13, from 3.13.0 before 3.13.11, from 3.14.0 before 3.14.1, from 3.15.0a1 before 3.15.0a3CVE List
https://github.com/python/cpythonbefore 4ce27904b597c77d74dd93f2c912676021a99155, before 5a4c4a033a4a54481be6870aa1896fad732555b5, before 289f29b0fe38baf2d7cb5854f4bb573cc34a6a15, before 14b1fdb0a94b96f86fc7b86671ea9582b8676628, before 5dc101675fd22918facbbe0fecdc821502beaaf0, before afc40bdd3dd71f343fd9016f6d8eebbacbd6587cPython Software Foundation
python pythonbefore 3.10.20, from 3.11.0 before 3.11.15, from 3.12.0 before 3.12.13, from 3.13.0 before 3.13.11, 3.14.0, 3.15.0NVD
libpython (Bitnami)before 3.10.20, from 3.11.0 before 3.11.15, from 3.12.0 before 3.12.13, from 3.13.0 before 3.13.11, from 3.14.0 before 3.14.1Bitnami Vulnerability Database
python (Bitnami)before 3.10.20, from 3.11.0 before 3.11.15, from 3.12.0 before 3.12.13, from 3.13.0 before 3.13.11, from 3.14.0 before 3.14.1Bitnami Vulnerability Database
python-min (Bitnami)before 3.10.20, from 3.11.0 before 3.11.15, from 3.12.0 before 3.12.13, from 3.13.0 before 3.13.11, from 3.14.0 before 3.14.1Bitnami Vulnerability Database

All scores

PSF6.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-400

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Al leer una respuesta HTTP de un servidor, si no se especifica una cantidad de lectura, el comportamiento predeterminado será usar Content-Length. Esto permite a un servidor malicioso hacer que el cliente lea grandes cantidades de datos en la memoria, lo que podría causar OOM u otro DoS.

References

https://github.com/python/cpython/issues/119451fix, issue-tracking, patch, report
https://github.com/python/cpython/pull/119454fix, issue-tracking, patch, web
https://github.com/python/cpython/commit/4ce27904b597c77d74dd93f2c912676021a99155fix, patch
https://github.com/python/cpython/commit/5a4c4a033a4a54481be6870aa1896fad732555b5fix, patch
https://mail.python.org/archives/list/security-announce@python.org/thread/OQ6G7MKRQIS3OAREC3HNG3D2DPOU34XO/advisory, vendor-advisory
https://github.com/python/cpython/commit/289f29b0fe38baf2d7cb5854f4bb573cc34a6a15fix, patch
https://github.com/python/cpython/commit/14b1fdb0a94b96f86fc7b86671ea9582b8676628fix, patch
https://github.com/python/cpython/commit/5dc101675fd22918facbbe0fecdc821502beaaf0fix, patch
https://github.com/python/cpython/commit/afc40bdd3dd71f343fd9016f6d8eebbacbd6587cfix, patch
https://nvd.nist.gov/vuln/detail/CVE-2025-13836web

Sources

SourceRecordLicence
CVE ListCVE-2025-13836 changed 2026-03-03CVE Terms of Use
Python Software FoundationPSF-2025-14 changed 2026-05-11CC-BY-4.0
NVDCVE-2025-13836 changed 2026-09-03Public domain
Bitnami Vulnerability DatabaseBIT-LIBPYTHON-2025-13836 changed 2026-09-10Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-2025-13836 changed 2026-09-10Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-MIN-2025-13836 changed 2026-09-10Apache-2.0