CVE-2026-16308

Denial of Service
Affects
Quarkus
in
Quarkus
No items found.
Versions
<3.27.5.1, >=3.28.0 <3.33.3.1, >=3.34.0 <3.38.1

Patch Available.

Exclamation circle icon
Patch Available

This Vulnerability has been fixed in the Never-Ending Support (NES) version offered by HeroDevs.

Overview

Quarkus is a Kubernetes-native Java framework optimized for cloud-native applications, containers, and serverless workloads. It builds on standard libraries (Jakarta EE, Eclipse Vert.x, Hibernate, Netty) and compiles to both JVM and GraalVM native images for fast startup and low memory use. RESTEasy Reactive, the server runtime behind Quarkus REST, handles HTTP requests for REST endpoints, including the parsing of multipart/form-data request bodies.

A denial of service vulnerability (CVE-2026-16308) has been identified in the RESTEasy Reactive multipart parser, which allows unauthenticated remote attackers to exhaust the JVM heap and crash the application with a single crafted multipart/form-data request.

Per OWASP: The Denial of Service (DoS) attack is focused on making a resource (site, application, server) unavailable for the purpose it was designed. There are many ways to make a service unavailable for legitimate users by manipulating network packets, programming, logical, or resources handling vulnerabilities, among others.

This issue affects multiple versions of Quarkus that include the io.quarkus.resteasy.reactive:resteasy-reactive package.

Details

Module Info

Vulnerability Info

This High-severity vulnerability is found in the io.quarkus.resteasy.reactive:resteasy-reactive package in multiple versions of Quarkus. The CVSS 3.1 base score is 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

MultipartParser is a byte-by-byte state machine that splits a multipart/form-data body into parts. While it reads the header section of each MIME part, the headerName and headerValue states copy every byte into a ByteArrayOutputStream named currentString. Neither state checks how many bytes have been buffered or how many headers the part has declared:

private void headerName(final ByteBuffer buffer) throws MalformedMessageException, UnsupportedEncodingException {
    while (buffer.hasRemaining()) {
        final byte b = buffer.get();
        // ... ':' , CR and LF handling ...
        } else {
            if (subState != 0) {
                throw new MalformedMessageException();
            } else if (currentString == null) {
                currentString = new ByteArrayOutputStream();
            }
            currentString.write(b);
        }
    }
}

private void headerValue(final ByteBuffer buffer) throws MalformedMessageException, UnsupportedEncodingException {
    while (buffer.hasRemaining()) {
        final byte b = buffer.get();
        // ... CR, LF and folded-line handling ...
        } else {
            if (subState != 0) {
                throw new MalformedMessageException();
            }
            currentString.write(b);
        }
    }
}

The existing maxEntitySize limit only counts body bytes that the parser delivers through the part handler's data() callback, so part-header bytes are never counted against it. On the non-blocking parse path, where the request body is fed to the parser through VertxResteasyReactiveRequestContext.setReadListener(), there is no cap on the number of bytes read from the wire either. An attacker can send a request with Transfer-Encoding: chunked containing a single MIME part whose header value is several gigabytes long. The parser buffers the whole value in memory before any application code runs, and the JVM fails with OutOfMemoryError. The attack needs no authentication and no valid form field names, and it works against any endpoint that accepts multipart/form-data. Reverse-proxy header-size limits do not help, because they apply to HTTP request headers and not to MIME part headers inside the request body.

Mitigation

Only recent versions of Quarkus are community-supported. Older lines are End-of-Life and will not receive public updates to address this issue. Quarkus LTS releases are maintained for 12 months from release; see the project's LTS release policy.

Users of the affected components should apply one of the following mitigations:

  • Upgrade Quarkus to a currently supported release that contains the fix.
  • Leverage a commercial support partner like HeroDevs for post-EOL security support.

Credits

Vulnerability Details
Severity
Level
CVSS Assessment
Low
>=0 <4
Medium
>=4 <6
High
>=6 <8
Critical
>=8 <10
High
ID
CVE-2026-16308
PROJECT Affected
Quarkus
Versions Affected
<3.27.5.1, >=3.28.0 <3.33.3.1, >=3.34.0 <3.38.1
NES Versions Affected
Published date
November 5, 2026
≈ Fix date
November 18, 2026
Category
Denial of Service
Vex Document
Download VEXHow do I use it?
Sign up for the latest vulnerability alerts fixed in
NES for Quarkus
Rss feed icon
Subscribe via RSS
or

By submitting the form I acknowledge receipt of our Privacy Policy.

Thanks for signing up for our Newsletter! We look forward to connecting with you.
Oops! Something went wrong while submitting the form.