cve.bz

CVE-2025-13836 python python: Uncontrolled Resource Consumption

6.3 mediumEPSS 1.7%Fix available

Medium (6.3) in python python. EPSS 1.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

6.3 medium
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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.7% (unchanged from 1.7% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 78th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-12-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-13836 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-13836?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-13836?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-13836 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Python Software Foundation CPythonbefore 3.10.20
Python Software Foundation CPythonfrom 3.11.0 before 3.11.15
Python Software Foundation CPythonfrom 3.12.0 before 3.12.13
Python Software Foundation CPythonfrom 3.13.0 before 3.13.11
Python Software Foundation CPythonfrom 3.14.0 before 3.14.1
Python Software Foundation CPythonfrom 3.15.0a1 before 3.15.0a3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11python3.93.9.2-1+deb11u4DLA-4445-1
Debian12python3.113.11.2-6+deb12u7DEBIAN-CVE-2025-13836
Debian12, 13pypy3no fix listedDEBIAN-CVE-2025-13836
Debian13python3.133.13.5-2+deb13u1DEBIAN-CVE-2025-13836
Debian14pypy37.3.21+dfsg-1DEBIAN-CVE-2025-13836
Debian14python3.143.14.2-1DEBIAN-CVE-2025-13836
Ubuntu22.04:LTSpython3.103.10.12-1~22.04.13UBUNTU-CVE-2025-13836 USN-7951-1
Ubuntu24.04:LTSpython3.123.12.3-1ubuntu0.10UBUNTU-CVE-2025-13836 USN-7951-1
Ubuntu25.10python3.133.13.7-1ubuntu0.2UBUNTU-CVE-2025-13836 USN-7951-1
Ubuntu25.10python3.143.14.0-1ubuntu0.1UBUNTU-CVE-2025-13836 USN-7951-1
UbuntuPro:18.04:LTSpython3.83.8.0-3ubuntu1~18.04.2+esm8UBUNTU-CVE-2025-13836 USN-7951-1
UbuntuPro:20.04:LTSpython3.83.8.10-0ubuntu1~20.04.18+esm4UBUNTU-CVE-2025-13836 USN-7951-1
UbuntuPro:20.04:LTSpython3.93.9.5-3ubuntu0~20.04.1+esm8UBUNTU-CVE-2025-13836 USN-7951-1
UbuntuPro:22.04:LTSpython3.113.11.0~rc1-1~22.04.1~esm7UBUNTU-CVE-2025-13836 USN-7951-1
Red Hatenterprise_linux:8::appstreampython3.11, python3.11-libs, python3.11-devel and 4 more0:3.11.13-4.el8_10RHSA-2026:1374
Red Hatenterprise_linux:8::appstreampython3.12, python3.12-libs, python3.12-devel and 4 more0:3.12.12-2.el8_10RHSA-2026:2419
Red Hatenterprise_linux:8::crbpython3.11, python3.11-idle, python3.11-test and 4 more0:3.11.13-4.el8_10RHSA-2026:1374
Red Hatenterprise_linux:8::crbpython3.12, python3.12-idle, python3.12-test and 4 more0:3.12.12-2.el8_10RHSA-2026:2419
Red Hatenterprise_linux:9::appstreampython3.11, python3.11-libs, python3.11-devel and 3 more0:3.11.13-5.el9_7RHSA-2026:1410
Red Hatenterprise_linux:9::appstreampython3.12, python3.12-libs, python3.12-devel and 3 more0:3.12.12-4.el9_7RHSA-2026:1408
Red Hatenterprise_linux:9::crbpython3.11, python3.11-idle, python3.11-test and 4 more0:3.11.13-5.el9_7RHSA-2026:1410
Red Hatenterprise_linux:9::crbpython3.12, python3.12-idle, python3.12-test and 4 more0:3.12.12-4.el9_7RHSA-2026:1408
Red Hatenterprise_linux:10.1python3, python3.12, python3-idle and 8 more0:3.12.12-3.el10_1RHSA-2026:1828
Red Hatenterprise_linux_eus:10.0python3, python3.12, python3-idle and 8 more0:3.12.9-2.el10_0.6RHSA-2026:2233
Red Hathummingbird:1python3, python3.14, python3-idle and 13 more0:3.14.4-1.hum1RHSA-2026:7661
Red Hathummingbird:1python3.11, python3.11-idle, python3.11-libs and 4 more0:3.11.15-4.hum1RHSA-2026:8822
12 more for Red Hat in the JSON and on Red Hat's page.
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy, saltbundlepy-core3.11.15-90002.4.15.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cffi1.17.1-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cryptography3.3.2-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cssselect1.3.0-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-editables0.5-90002.3.3.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-exceptiongroup, saltbundlepy-exceptiongroup-test1.2.2-90002.3.3.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-flit-core3.12.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatch-fancy-pypi-readme, saltbundlepy-hatch-fancy-pypi-readme-test25.1.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatch-vcs, saltbundlepy-hatch-vcs-test0.5.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatchling1.31.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-idna3.10-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-iniconfig2.1.0-90002.3.3.1SUSE-SU-2026:4582-1
155 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6python, python-doc, python-base2.7.18-150000.94.1SUSE-SU-2026:0268-1
openSUSELeap 15.6python3, python3-core, python3-documentation3.6.15-150300.10.103.1SUSE-SU-2026:0027-1
openSUSELeap 15.6python310, python310-core, python310-documentation3.10.19-150400.4.94.1SUSE-SU-2026:0130-1
openSUSELeap 15.6python311, python311-core3.11.14-150600.3.41.2SUSE-SU-2026:0314-1
openSUSELeap 15.6python311, python311-core, python311-documentation3.11.15-150600.3.53.1SUSE-SU-2026:1349-1
openSUSELeap 15.6python311-documentation3.11.14-150600.3.41.1SUSE-SU-2026:0314-1
openSUSELeap 15.6python312, python312-core, python312-documentation3.12.12-150600.3.40.1SUSE-SU-2026:0025-1
openSUSELeap 15.6python39, python39-core, python39-documentation3.9.25-150300.4.90.1SUSE-SU-2025:4522-1
openSUSELeap 15.6salt3006.0-150500.4.68.2SUSE-SU-2026:1029-1
openSUSELeap 15.6salt-test3006.0-150500.4.68.1SUSE-SU-2026:1029-1
openSUSELeap 16.0python313, python313-core, python313-nogil and 2 more3.13.11-160000.1.1openSUSE-SU-2026:20081-1
openSUSELeap 16.0salt, salt-test3006.0-160000.4.1openSUSE-SU-2026:20412-1
8 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8python3.11, python3.11-idle, python3.11-libs and 5 more3.11.13-4.el8_10ALSA-2026:1374
AlmaLinux8python3.12, python3.12-idle, python3.12-libs and 5 more3.12.12-2.el8_10ALSA-2026:2419
AlmaLinux9python3.11, python3.11-idle, python3.11-libs and 4 more3.11.13-5.el9_7ALSA-2026:1410
AlmaLinux9python3.12, python3.12-idle, python3.12-libs and 4 more3.12.12-4.el9_7ALSA-2026:1408
AlmaLinux10python-unversioned-command3.12.12-3.el10_1ALSA-2026:1828
Rocky Linux8python3.110:3.11.13-4.el8_10RLSA-2026:1374
Rocky Linux8python3.120:3.12.12-2.el8_10RLSA-2026:2419
Rocky Linux9python3.110:3.11.13-5.el9_7RLSA-2026:1410
Rocky Linux9python3.120:3.12.12-4.el9_7RLSA-2026:1408
Rocky Linux10python3.120:3.12.12-3.el10_1RLSA-2026:1828
Azure Linux3python-pyno fix listedAZL-109689
Azure Linux3python33.12.9-7AZL-71264
Alpaquita23python33.11.13-r2BELL-CVE-2025-13836
Alpaquita25python33.12.12-r1BELL-CVE-2025-13836
Alpaquitastreampython33.12.12-r2BELL-CVE-2025-13836
BellSoft Hardened Containers23python33.11.13-r2BELL-CVE-2025-13836
BellSoft Hardened Containers25python33.12.12-r1BELL-CVE-2025-13836
BellSoft Hardened Containersstreampython33.12.12-r2BELL-CVE-2025-13836

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue can only be exploited by Python applications using the http.client.HTTPResponse.read function without the amount parameter, which specifies the read size in bytes. Note that Python libraries may use this function internally and make applications vulnerable. Additionally, vulnerable Python applications must connect to a malicious or compromised server that replies with a very large or crafted Content-Length header to trigger this issue, limiting the exposure of this vulnerability.

Red Hat's mitigation

Since this vulnerability is triggered when no read amount is specified and the client defaults to using the potentially malicious Content-Length header, developers can mitigate this issue in their code by always imposing an explicit, safe limit on data reads.

Applications using the http.client.HTTPResponse.read function directly can ensure that read operations specify a byte limit:

~~~

...

max_safe_read = 10 * 1024 * 1024

data = response.read(max_safe_read)

...

~~~

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10python3.12-0:3.12.12-3.el10_1Fixed 2026-02-03RHSA-2026:1828
Red Hat Enterprise Linux 10.0 Extended Update Supportpython3.12-0:3.12.9-2.el10_0.6Fixed 2026-02-09RHSA-2026:2233
Red Hat Enterprise Linux 8python3.11-0:3.11.13-4.el8_10Fixed 2026-01-27RHSA-2026:1374
Red Hat Enterprise Linux 8python3.12-0:3.12.12-2.el8_10Fixed 2026-02-10RHSA-2026:2419
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicepython3.11-0:3.11.2-2.el8_8.7Fixed 2026-02-05RHSA-2026:2084
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionspython3.11-0:3.11.2-2.el8_8.7Fixed 2026-02-05RHSA-2026:2084
Red Hat Enterprise Linux 9python3.12-0:3.12.12-4.el9_7Fixed 2026-01-27RHSA-2026:1408
Red Hat Enterprise Linux 9python3.11-0:3.11.13-5.el9_7Fixed 2026-01-27RHSA-2026:1410
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionspython3.11-0:3.11.2-2.el9_2.9Fixed 2026-02-04RHSA-2026:1922
Red Hat Enterprise Linux 9.4 Extended Update Supportpython3.11-0:3.11.7-1.el9_4.10Fixed 2026-02-04RHSA-2026:1893
Red Hat Enterprise Linux 10firefoxNot affected
Red Hat Enterprise Linux 6pythonNot affected
Red Hat Enterprise Linux 7firefoxNot affected
Red Hat Enterprise Linux 7pythonNot affected
Red Hat Enterprise Linux 7python3Not affected
Red Hat Enterprise Linux 8firefoxNot affected
Red Hat Enterprise Linux 8python3Not affected
Red Hat Enterprise Linux 8python36:3.6/python36Not affected
Red Hat Enterprise Linux 8python39-devel:3.9/python39Not affected
Red Hat Enterprise Linux 9firefoxNot affected
30 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-13836.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON