CVE-2026-16308
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
- Product: Quarkus
- Affected packages:
io.quarkus.resteasy.reactive:resteasy-reactive - Affected versions: <3.27.5.1, >=3.28.0 <3.33.3.1, >=3.34.0 <3.38.1
- GitHub repository: https://github.com/quarkusio/quarkus
- Published packages: https://central.sonatype.com/artifact/io.quarkus.resteasy.reactive/resteasy-reactive
- Package manager: Maven
- Fixed in:
- OSS Quarkus 3.27.5.1, 3.33.3.1, 3.38.1
- NES for Quarkus 2.16.19, 3.20.12
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
- Michael-JRead (finder)