Werkzeug vulnerable to high resource usage when parsing multipart/form-data containing a large part with CR/LF character at the beginning
Published Oct 24, 2023
8.0
HIGHCVSS 3.1
EPSS 1.07%
Description
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.
Affected products
-
- Version >= 2.0.0rc1, < 2.3.8StatusaffectedConstraints-
- Version >= 3.0.0, < 3.0.1StatusaffectedConstraints-
- Version
- < 2.3.8
- 3.0.0
No data.
Ironic content for Red Hat OpenShift Container Platform 4.12
python-werkzeug-0:2.0.3-5.el9
Fixed · RHSA-2023:7610
Ironic content for Red Hat OpenShift Container Platform 4.13
python-werkzeug-0:2.0.3-5.el9
Fixed · RHSA-2023:7477
Red Hat Ceph Storage 8.1
oath-toolkit-0:2.6.12-1.el9cp
Fixed · RHSA-2025:9775
Red Hat OpenShift Container Platform 4.14
python-werkzeug-0:2.2.3-2.el9
Fixed · RHSA-2023:7473
Red Hat OpenStack Platform 17.1 for RHEL 8
python-werkzeug-0:2.0.1-8.el8ost
Fixed · RHSA-2024:0189
Red Hat OpenStack Platform 17.1 for RHEL 9
python-werkzeug-0:2.0.1-6.el9ost
Fixed · RHSA-2024:0214
Red Hat Ceph Storage 5
python-werkzeug
Affected
Red Hat Ceph Storage 6
python-werkzeug
Will not fix
Red Hat Enterprise Linux 7
python-werkzeug
Out of support scope
Red Hat Enterprise Linux 8
python-werkzeug
Not affected
Red Hat OpenStack Platform 16.1
python-werkzeug
Will not fix
Red Hat OpenStack Platform 16.2
openstack-designate
Will not fix
Red Hat OpenStack Platform 16.2
python-werkzeug
Will not fix
Red Hat OpenStack Platform 18.0
python-httpcore
Affected
Red Hat OpenStack Platform 18.0
python-werkzeug
Affected
Red Hat Quay 3
quay/quay-rhel8
Affected
Red Hat Storage 3
python-werkzeug
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Ironic content for Red Hat OpenShift Container Platform 4.12 | python-werkzeug-0:2.0.3-5.el9 | Fixed | RHSA-2023:7610 |
| Ironic content for Red Hat OpenShift Container Platform 4.13 | python-werkzeug-0:2.0.3-5.el9 | Fixed | RHSA-2023:7477 |
| Red Hat Ceph Storage 8.1 | oath-toolkit-0:2.6.12-1.el9cp | Fixed | RHSA-2025:9775 |
| Red Hat OpenShift Container Platform 4.14 | python-werkzeug-0:2.2.3-2.el9 | Fixed | RHSA-2023:7473 |
| Red Hat OpenStack Platform 17.1 for RHEL 8 | python-werkzeug-0:2.0.1-8.el8ost | Fixed | RHSA-2024:0189 |
| Red Hat OpenStack Platform 17.1 for RHEL 9 | python-werkzeug-0:2.0.1-6.el9ost | Fixed | RHSA-2024:0214 |
| Red Hat Ceph Storage 5 | python-werkzeug | Affected | n/a |
| Red Hat Ceph Storage 6 | python-werkzeug | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | python-werkzeug | Out of support scope | n/a |
| Red Hat Enterprise Linux 8 | python-werkzeug | Not affected | n/a |
| Red Hat OpenStack Platform 16.1 | python-werkzeug | Will not fix | n/a |
| Red Hat OpenStack Platform 16.2 | openstack-designate | Will not fix | n/a |
| Red Hat OpenStack Platform 16.2 | python-werkzeug | Will not fix | n/a |
| Red Hat OpenStack Platform 18.0 | python-httpcore | Affected | n/a |
| Red Hat OpenStack Platform 18.0 | python-werkzeug | Affected | n/a |
| Red Hat Quay 3 | quay/quay-rhel8 | Affected | n/a |
| Red Hat Storage 3 | python-werkzeug | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat 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.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
2 other sources (GHSA, GitHub) ▾
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 4, 2026.
Score over time
2023-2026- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (10 key points)
Flat stretches are collapsed. Showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 4, 2026 | 1.07% (0.01072) | 63.71th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.06% (0.01063) | 60.11th | v5 (v2026.06.15) |
| Mar 30, 2025 | 0.90% (0.00898) | 73.53th | v4 (v2025.03.14) |
| Mar 29, 2025 | 2.80% (0.02798) | 76.83th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.90% (0.00898) | 74.01th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.10% (0.00104) | 44.29th | v3 (v2023.03.01) |
| Jun 21, 2024 | 0.05% (0.00053) | 21.27th | v3 (v2023.03.01) |
| Nov 25, 2023 | 0.05% (0.00053) | 19.27th | v3 (v2023.03.01) |
| Nov 2, 2023 | 0.05% (0.00046) | 14.30th | v3 (v2023.03.01) |
| Oct 25, 2023 | 0.04% (0.00043) | 7.24th | v3 (v2023.03.01) |
References (12)
- https://access.redhat.com/security/cve/CVE-2023-46136 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2246310 Issue Tracking
- https://github.com/advisories/GHSA-hrfv-mqp8-q5rw Advisory
- https://github.com/pallets/werkzeug/commit/b1916c0c083e0be1c9d887ee2f3d696922bfc5c1
- https://github.com/pallets/werkzeug/commit/cbb446fdcada7685fce936ded01b76c08dbd6eb5
- https://github.com/pallets/werkzeug/commit/f2300208d5e2a5076cbbb4c2aad71096fd040ef9
- https://github.com/pallets/werkzeug/commit/f3c803b3ade485a45f12b6d6617595350c0f03e2 x_refsource_MISCPatch
- https://github.com/pallets/werkzeug/security/advisories/GHSA-hrfv-mqp8-q5rw x_refsource_CONFIRMVendor Advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/werkzeug/PYSEC-2023-221.yaml
- https://nvd.nist.gov/vuln/detail/CVE-2023-46136
- https://security.netapp.com/advisory/ntap-20231124-0008 Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2023-46136
Change history (0)
No recorded changes yet.