CVE-2026-1605
The Eclipse Jetty Server Artifact has a Gzip request memory leak
Description
Description (as reported)
There is a memory leak when using GzipHandler in jetty-12.0.30 that can cause off-heap OOMs. This can be used for DoS attacks so I'm reporting this as a vulnerability.
The leak is created by requests where the request is inflated (Content-Encoding: gzip) and the response is not deflated (no Accept-Encoding: gzip). In these conditions, a new inflator will be created by GzipRequest and never released back into GzipRequest.__inflaterPool because gzipRequest.destory() is not called.
In heap dumps one can see thousands of java.util.zip.Inflator objects, which use both Java heaps and native memory. Leaking native memory causes of off-heap OOMs.
Code path in GzipHandler.handle():
- Line 601:
GzipRequestis created when request inflation is needed. - Lines 611-616: The callback is only wrapped in
GzipResponseAndCallbackwhen both inflation and deflation are needed. - Lines 619-625: If the handler accepts the request (returns true),
gzipRequest.destroy()is only called in the "request not accepted" path (returns false)
When deflation is needed, GzipResponseAndCallback (lines 102 and 116) properly calls gzipRequest.destroy() in its succeeded() and failed() methods. But this wrapper is only created when deflation is needed.
Possible fix:
The callback should be wrapped whenever a GzipRequest is created, not just when deflation is needed. This ensures gzipRequest.destroy() is always called when the request completes.
Impact
The leak causes the JVM to crash with OOME.
Patches
No patches yet.
Workarounds
Disable GzipHandler.
References
https://github.com/jetty/jetty.project/issues/14260
https://gitlab.eclipse.org/security/cve-assignment/-/issues/79
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.eclipse.jetty » jetty-server | >= 12.0.0, < 12.0.32>= 12.1.0, < 12.1.6 | 12.0.32, 12.1.6 |
Blast radius
31% of the dependent artifacts (660) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 5,257 |
| 2 hops | 13,453 |
| 3 hops | 10,248 |
| 4 hops | 6,955 |
| 5 hops | 2,543 |
| 6 hops | 912 |
Most used dependents
- com.github.tomakehurst » wiremock1,838 usages
- org.apache.kafka » kafka1,450 usages
- org.jenkins-ci.tools » maven-hpi-plugin1,404 usages
- io.dropwizard » dropwizard-core894 usages
- org.eclipse.jetty » jetty-security843 usages
- org.wiremock » wiremock733 usages
- org.apache.cxf » cxf-rt-transports-http-jetty513 usages
- org.apache.solr » solr-core500 usages
- ring » ring469 usages
- io.dropwizard » dropwizard-testing463 usages
- org.eclipse.jetty.ee10 » jetty-ee10-servlet460 usages
- org.springframework.boot » spring-boot-starter-jetty458 usages
- org.eclipse.jetty » jetty-plus392 usages
- org.eclipse.jetty » jetty-annotations391 usages
- ring » ring-jetty-adapter371 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
