Skip to content

Quarkus REST - Unbounded multipart MIME part-header accumulation allows remote OOM denial of service

High
cescoffier published GHSA-xrmg-9xc7-83fp Aug 28, 2026

Package

maven io.quarkus.resteasy.reactive:resteasy-reactive (Maven)

Affected versions

=<3.38

Patched versions

3.33.3.1, 3.27.5.1, 3.38.1

Description

Summary

Quarkus REST / RESTEasy Reactive's MultipartParser accumulates MIME part-header bytes without any size or count limit. An unauthenticated remote attacker can send a single crafted multipart/form-data request with an arbitrarily large part-header section to exhaust the JVM heap and crash the application.

Details

The MultipartParser state machine reads part-header bytes (header names and values within each MIME part) into ByteArrayOutputStream (currentString) with no upper bound. The existing maxEntitySize guard only counts body bytes delivered through the data() callback; header bytes bypass it entirely.

On the non-blocking parse path (VertxResteasyReactiveRequestContext.setReadListener()), there is no wire-byte cap. An attacker can send a chunked Transfer-Encoding: chunked request containing a single MIME part with a multi-gigabyte header value (e.g. X-Boom: <4GB of data>). The parser will faithfully buffer the entire value in memory before any application code runs, leading to OutOfMemoryError.

The attack requires no authentication or valid form field names and works against any endpoint that accepts multipart/form-data.

Impact

Denial of service. A single HTTP request can crash the JVM with OutOfMemoryError. No data exfiltration or code execution is possible through this vector.

Patches

Fixed by adding per-part header size and header count limits to MultipartParser. Requests exceeding the limits are rejected with HTTP 413 (Request Entity Too Large).

The thresholds are configurable:

  • quarkus.http.limits.max-multipart-part-header-size (default: 32KB)
  • quarkus.http.limits.max-multipart-header-count (default: 40)

Workarounds

No effective workaround exists. Reverse-proxy header-size limits typically apply to HTTP request headers, not to MIME part headers embedded within the request body.

References

  • CWE-770: Allocation of Resources Without Limits or Throttling

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVE ID

CVE-2026-16308

Weaknesses

No CWEs

Credits