cve.bz

CVE-2023-46136 palletsprojects werkzeug: Out-of-bounds Write

7.5 highEPSS 1.3%Fix available

High (7.5) in palletsprojects werkzeug. EPSS 1.3% estimated probability of exploitation activity in the next 30 days. Fixed in werkzeug 2.3.8, 3.0.1.

On this page
Werkzeug is a comprehensive WSGI web application library. In versions on the 3.x branch prior to 3.0.1 and on the 2.x branch prior to 2.3.8, if an upload of a file that starts with CR or LF and then is followed by megabytes of data without these characters: all of these bytes are appended chunk by chunk into internal bytearray and lookup for boundary is performed on growing buffer. This allows an attacker to cause a denial of service by sending crafted multipart data to an endpoint that will parse it. The amount of CPU time required can block worker processes from handling legitimate requests. This vulnerability has been patched in version 3.0.1 and 2.3.8.

Severity

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.3% (unchanged from 1.3% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 71st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-787 Out-of-bounds Write
CWE-400 Uncontrolled Resource Consumption
CWE-407 Inefficient Algorithmic Complexity
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-46136 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-46136?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-46136?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-2023-46136 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 NVD's CPE matches.

ProductAffected
palletsprojects:werkzeugbefore 2.3.8
palletsprojects:werkzeug3.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-hrfv-mqp8-q5rwPyPIwerkzeug>=3.0.0 <3.0.13.0.1
GHSA-hrfv-mqp8-q5rwPyPIwerkzeug>=2.0.0rc1 <2.3.82.3.8
PYSEC-2023-221PyPIwerkzeug<2.3.8
>=3.0.0 <3.0.1
2.3.8, 3.0.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12python-werkzeug2.2.2-3+deb12u1DEBIAN-CVE-2023-46136
Debian13, 14python-werkzeug3.0.1-2DEBIAN-CVE-2023-46136
Red Hatceph_storage:8.1::el9ceph, cephadm, librbd1 and 56 more2:19.2.1-222.el9cpRHSA-2025:9775
Red Hatceph_storage:8.1::el9cephadm-ansible1:4.1.4-1.el9cpRHSA-2025:9775
Red Hatceph_storage:8.1::el9liboath, oath-toolkit, liboath-debuginfo and 6 more0:2.6.12-1.el9cpRHSA-2025:9775
Red Hatopenshift:4.12::el8cri-o, cri-o-debuginfo, cri-o-debugsource0:1.25.5-2.rhaos4.12.git0217273.el8RHSA-2023:7610
Red Hatopenshift:4.12::el8kernel-rt, kernel-rt-kvm, kernel-rt-core and 15 more0:4.18.0-372.82.1.rt7.241.el8_6RHSA-2023:7610
Red Hatopenshift:4.12::el8openshift, openshift-hyperkube0:4.12.0-202311161331.p0.ga52e8df.assembly.stream.el8RHSA-2023:7610
Red Hatopenshift:4.12::el8openshift-clients, openshift-clients-redistributable0:4.12.0-202311221849.p0.gd2ac7e1.assembly.stream.el8RHSA-2023:7610
Red Hatopenshift:4.12::el8perf, kernel, bpftool and 35 more0:4.18.0-372.82.1.el8_6RHSA-2023:7610
Red Hatopenshift:4.12::el9openshift, openshift-hyperkube0:4.12.0-202311161331.p0.ga52e8df.assembly.stream.el9RHSA-2023:7610
Red Hatopenshift:4.12::el9openshift-clients, openshift-clients-redistributable0:4.12.0-202311221849.p0.gd2ac7e1.assembly.stream.el9RHSA-2023:7610
Red Hatopenshift:4.14::el8haproxy, haproxy26, haproxy-debugsource and 1 more0:2.6.13-2.rhaos4.14.el8RHSA-2023:7473
Red Hatopenshift_ironic:4.12::el9python-werkzeug, python3-werkzeug0:2.0.3-5.el9RHSA-2023:7610
4 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Python 3 15 SP4, Linux Enterprise Module for Python 3 15 SP5python-Werkzeug2.3.6-150400.6.6.1SUSE-SU-2023:4288-1
openSUSELeap 15.4, Leap 15.5python-Werkzeug2.3.6-150400.6.6.1SUSE-SU-2023:4288-1
openSUSETumbleweedpython-Werkzeug3.0.1-1.1openSUSE-SU-2024:13375-1
openSUSETumbleweedpython-Werkzeug3.1.9-1.1openSUSE-SU-2026:11943-1
Alpinev3.18, v3.19, v3.20 and 4 morepy3-werkzeug2.3.7-r0ALPINE-CVE-2023-46136
Azure Linux2python-werkzeug2.3.7-1AZL-31701
Azure Linux3python-werkzeug3.0.1-1AZL-35141

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The vulnerability found in python-werkzeug, which lets attackers carry out denial of service attacks by using carefully crafted multipart data, is considered a moderate issue because it could affect system resources and availability. When this vulnerability is exploited, it can cause the CPU to work excessively hard because the parsing mechanism keeps adding data chunks to an internal buffer without checking boundaries properly. This can result in legitimate requests being delayed or denied as worker processes get overloaded, affecting how well the web application performs and responds. While this problem doesn’t directly compromise data integrity or confidentiality, exploiting it can disrupt the availability of the service, which is why it’s seen as a moderate issue.

ProductPackageStateAdvisory
Ironic content for Red Hat OpenShift Container Platform 4.12python-werkzeug-0:2.0.3-5.el9Fixed 2023-12-06RHSA-2023:7610
Ironic content for Red Hat OpenShift Container Platform 4.13python-werkzeug-0:2.0.3-5.el9Fixed 2023-11-29RHSA-2023:7477
Red Hat Ceph Storage 8.1oath-toolkit-0:2.6.12-1.el9cpFixed 2025-06-26RHSA-2025:9775
Red Hat OpenShift Container Platform 4.14python-werkzeug-0:2.2.3-2.el9Fixed 2023-11-29RHSA-2023:7473
Red Hat OpenStack Platform 17.1 for RHEL 8python-werkzeug-0:2.0.1-8.el8ostFixed 2024-01-16RHSA-2024:0189
Red Hat OpenStack Platform 17.1 for RHEL 9python-werkzeug-0:2.0.1-6.el9ostFixed 2024-01-16RHSA-2024:0214
Red Hat Ceph Storage 5python-werkzeugAffected
Red Hat Ceph Storage 6python-werkzeugWill not fix
Red Hat Enterprise Linux 7python-werkzeugOut of support scope
Red Hat Enterprise Linux 8python-werkzeugNot affected
Red Hat OpenStack Platform 16.1python-werkzeugWill not fix
Red Hat OpenStack Platform 16.2openstack-designateWill not fix
Red Hat OpenStack Platform 16.2python-werkzeugWill not fix
Red Hat OpenStack Platform 18.0python-httpcoreAffected
Red Hat OpenStack Platform 18.0python-werkzeugAffected
Red Hat Quay 3quay/quay-rhel8Affected
Red Hat Storage 3python-werkzeugWill not fix

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-2023-46136.

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