Skip to content
Noroxi
CVE-2023-46136· NVD / CVE Program· CNA GitHub_M

Werkzeug vulnerable to high resource usage when parsing multipart/form-data containing a large part with CR/LF character at the beginning

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.

HighCVSS 7.5 · v3.1—Proof of concept Fix available
Published
Oct 25, 2023
Updated
Jun 17, 2026
EPSS
1.1% · 64th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

30

Monitor

Low priority for now.

CVSS
30 / 40 · 7.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 1.1%

CNA vs NVD score

NVD
7.5
CNA · GitHub_M
8.0
0.5 point gap

CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Affected systems

VendorProduct
palletsprojectswerkzeug

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • palletsprojects werkzeugbefore 2.3.8
  • palletsprojects werkzeug3.0.0

Versions reported by the vendor

Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.

  • pallets werkzeug

    • >= 3.0.0, < 3.0.1, >= 2.0.0rc1, < 2.3.8affected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Alpine:v3.23py3-werkzeugbefore 2.3.7-r02.3.7-r0
Debian:12python-werkzeugbefore 2.2.2-3+deb12u12.2.2-3+deb12u1
Debian:13python-werkzeugbefore 3.0.1-23.0.1-2
openSUSE:Tumbleweedpython-Werkzeugbefore 3.1.9-1.13.1.9-1.1
openSUSE:Tumbleweedpython-Werkzeugbefore 3.0.1-1.13.0.1-1.1
PyPIwerkzeugfrom 2.0.0rc1 · before 2.3.82.3.8
PyPIwerkzeugfrom 3.0.0 · before 3.0.13.0.1
PyPIwerkzeugbefore 2.3.82.3.8
Red Hat:ceph_storage:8.1::el9cephbefore 2:19.2.1-222.el9cp2:19.2.1-222.el9cp
Red Hat:ceph_storage:8.1::el9ceph-basebefore 2:19.2.1-222.el9cp2:19.2.1-222.el9cp
Red Hat:ceph_storage:8.1::el9ceph-base-debuginfobefore 2:19.2.1-222.el9cp2:19.2.1-222.el9cp
Red Hat:ceph_storage:8.1::el9ceph-commonbefore 2:19.2.1-222.el9cp2:19.2.1-222.el9cp
Red Hat:ceph_storage:8.1::el9ceph-common-debuginfobefore 2:19.2.1-222.el9cp2:19.2.1-222.el9cp
Red Hat:ceph_storage:8.1::el9ceph-debuginfobefore 2:19.2.1-222.el9cp2:19.2.1-222.el9cp
Red Hat:ceph_storage:8.1::el9ceph-debugsourcebefore 2:19.2.1-222.el9cp2:19.2.1-222.el9cp
Red Hat:ceph_storage:8.1::el9ceph-exporter-debuginfobefore 2:19.2.1-222.el9cp2:19.2.1-222.el9cp
Red Hat:ceph_storage:8.1::el9ceph-fusebefore 2:19.2.1-222.el9cp2:19.2.1-222.el9cp
Red Hat:ceph_storage:8.1::el9ceph-fuse-debuginfobefore 2:19.2.1-222.el9cp2:19.2.1-222.el9cp
Red Hat:ceph_storage:8.1::el9ceph-immutable-object-cachebefore 2:19.2.1-222.el9cp2:19.2.1-222.el9cp
Red Hat:ceph_storage:8.1::el9ceph-immutable-object-cache-debuginfobefore 2:19.2.1-222.el9cp2:19.2.1-222.el9cp
Red Hat:ceph_storage:8.1::el9ceph-mds-debuginfobefore 2:19.2.1-222.el9cp2:19.2.1-222.el9cp
Red Hat:ceph_storage:8.1::el9ceph-mgr-debuginfobefore 2:19.2.1-222.el9cp2:19.2.1-222.el9cp
Red Hat:ceph_storage:8.1::el9ceph-mibbefore 2:19.2.1-222.el9cp2:19.2.1-222.el9cp
Red Hat:ceph_storage:8.1::el9ceph-mon-client-nvmeof-debuginfobefore 2:19.2.1-222.el9cp2:19.2.1-222.el9cp

+96

Other highest-scoring records for the same primary product.

  • CVE-2019-14322In Pallets Werkzeug before 0.15.5, SharedDataMiddleware mishandles drive names (such as C:) in Windows pathnames.
    47Plan
  • CVE-2022-29361Improper parsing of HTTP requests in Pallets Werkzeug v2.1.0 and below allows attackers to perform HTTP Request Smuggling using a crafted HT
    41Plan
  • CVE-2024-34069Werkzeug's improper usage of a pathname and improper CSRF protection results in the remote command execution
    31Monitor
  • CVE-2019-14806Pallets Werkzeug before 0.15.3, when used with Docker, has insufficient debugger PIN randomness because Docker containers share the same mac
    31Monitor
  • CVE-2023-25577Werkzeug may allow high resource usage when parsing multipart form data with many fields
    30Monitor
  • CVE-2026-27199Werkzeug safe_join() allows Windows special device names
    25Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
pallets werkzeug3.0.1 · descriptionVendor (CNA)
alpine:py3-werkzeug2.3.7-r0 · Alpine:v3.23Package registry (OSV)
debian:python-werkzeug2.2.2-3+deb12u1 · Debian:12Package registry (OSV)
opensuse:python-Werkzeug2.3.6-150400.6.6.1 · openSUSE:Leap 15.4Package registry (OSV)
PyPI:werkzeug2.3.8Package registry (OSV)
PyPI:werkzeug3.0.1Package registry (OSV)
red hat:bpftool0:4.18.0-372.82.1.el8_6 · Red Hat:openshift:4.12::el8Package registry (OSV)
red hat:bpftool-debuginfo0:4.18.0-372.82.1.el8_6 · Red Hat:openshift:4.12::el8Package registry (OSV)
red hat:cri-o0:1.25.5-2.rhaos4.12.git0217273.el8 · Red Hat:openshift:4.12::el8Package registry (OSV)
red hat:cri-o-debuginfo0:1.25.5-2.rhaos4.12.git0217273.el8 · Red Hat:openshift:4.12::el8Package registry (OSV)
red hat:cri-o-debugsource0:1.25.5-2.rhaos4.12.git0217273.el8 · Red Hat:openshift:4.12::el8Package registry (OSV)
red hat:haproxy0:2.6.13-2.rhaos4.14.el8 · Red Hat:openshift:4.14::el8Package registry (OSV)
red hat:haproxy-debugsource0:2.6.13-2.rhaos4.14.el8 · Red Hat:openshift:4.14::el8Package registry (OSV)
red hat:haproxy260:2.6.13-2.rhaos4.14.el8 · Red Hat:openshift:4.14::el8Package registry (OSV)
red hat:haproxy26-debuginfo0:2.6.13-2.rhaos4.14.el8 · Red Hat:openshift:4.14::el8Package registry (OSV)
red hat:kernel0:4.18.0-372.82.1.el8_6 · Red Hat:openshift:4.12::el8Package registry (OSV)
red hat:python-werkzeug0:2.2.3-2.el9 · Red Hat:openshift_ironic:4.14::el9Package registry (OSV)
red hat:python3-werkzeug0:2.2.3-2.el9 · Red Hat:openshift_ironic:4.14::el9Package registry (OSV)
suse:python-Werkzeug2.3.6-150400.6.6.1 · SUSE:Linux Enterprise Module for Python 3 15 SP4Package registry (OSV)

Exploit status

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Proof-of-concept repository on GitHub ×1

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Proof-of-concept repository on GitHubstars:02025-11-29

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. Published
  2. First PoC+765 d
  3. TodayOct 11, 2026+1082 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
none
Integrity
none
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
None
Integrity impact
None
Availability impact
High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

nvd-primary

Root cause

Code that parses nested structures sets no depth or size limit. A small input can turn into a disproportionate processing load.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
function expand(node) {  return node.children.map(expand);}

Fixed

ts
const MAX_DEPTH = 32;function expand(node, depth = 0) {  if (depth > MAX_DEPTH) throw new Error("too deep");  return node.children.map((c) => expand(c, depth + 1));}

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records