7.5high
Jetty vulnerable to incorrect handling of invalid large TLS frame, exhausting CPU resources
- Severity
- 7.5high CVSS:3.1 by eclipse
- Exploit likelihood
- 53.9% (higher than 99% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- eclipse
- Also known as
- GHSA-26vr-8j45-3r4wBIT-JENKINS-2021-28165
Description
In Eclipse Jetty 7.2.2 to 9.4.38, 10.0.0.alpha0 to 10.0.1, and 11.0.0.alpha0 to 11.0.1, CPU usage can reach 100% upon receiving a large invalid TLS frame.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| The Eclipse Foundation Eclipse Jetty | from 7.2.2 before unspecified, from unspecified up to 9.4.38, from 10.0.0.alpha0 before unspecified, from unspecified up to 10.0.1, from 11.0.0.alpha0 before unspecified, from unspecified up to 11.0.1 | CVE List |
| org.eclipse.jetty:jetty-server (Maven) | from 7.2.2 before 9.4.39, from 10.0.0 before 10.0.2, from 11.0.0 before 11.0.2 | GitHub Advisory Database |
| eclipse jetty | from 7.2.2 before 9.4.39, from 10.0.0 before 10.0.2, from 11.0.0 before 11.0.2 | NVD |
| oracle autovue_for_agile_product_lifecycle_management | 21.0.2 | NVD |
| oracle communications_cloud_native_core_policy | 1.14.0 | NVD |
| oracle communications_element_manager | 8.2.2 | NVD |
| oracle communications_services_gatekeeper | 7.0 | NVD |
| oracle communications_session_report_manager | from 8.0.0.0 up to 8.2.4.0 | NVD |
| oracle communications_session_route_manager | from 8.0.0.0 up to 8.2.4.0 | NVD |
| oracle rest_data_services | before 21.3 | NVD |
| oracle siebel_core_-_automation | up to 21.9 | NVD |
| jenkins jenkins | before 2.277.3, before 2.286 | NVD |
| netapp cloud_manager | before 3.9.8 | NVD |
| netapp e-series_performance_analyzer | before 3.0 | NVD |
| netapp e-series_santricity_os_controller | from 11.0.0 before 11.70.1 | NVD |
| netapp e-series_santricity_storage | before 1.10 | NVD |
| netapp e-series_santricity_web_services | before 5.1 | NVD |
| netapp ontap_tools | before 9.10 | NVD |
| netapp santricity_cloud_connector | Not specified | NVD |
| netapp santricity_web_services_proxy | before 5.1 | NVD |
| netapp snapcenter | before 4.6 | NVD |
| netapp storage_replication_adapter_for_clustered_data_ontap | before 9.10 | NVD |
| netapp vasa_provider_for_clustered_data_ontap | before 9.10 | NVD |
| jenkins (Bitnami) | before 2.286.0 | Bitnami Vulnerability Database |
All scores
| eclipse | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.8high CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:C |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
In Eclipse Jetty 7.2.2 to 9.4.38, 10.0.0.alpha0 to 10.0.1, and 11.0.0.alpha0 to 11.0.1, CPU usage can reach 100% upon receiving a large invalid TLS frame.
GitHub Advisory Database
Impact
When using SSL/TLS with Jetty, either with HTTP/1.1, HTTP/2, or WebSocket, the server may receive an invalid large (greater than 17408) TLS frame that is incorrectly handled, causing CPU resources to eventually reach 100% usage.
Workarounds
The problem can be worked around by compiling the following class:
package org.eclipse.jetty.server.ssl.fix6072;
import java.nio.ByteBuffer;
import javax.net.ssl.SSLEngine;
import javax.net.ssl.SSLEngineResult;
import javax.net.ssl.SSLException;
import javax.net.ssl.SSLHandshakeException;
import org.eclipse.jetty.io.EndPoint;
import org.eclipse.jetty.io.ssl.SslConnection;
import org.eclipse.jetty.server.Connector;
import org.eclipse.jetty.server.SslConnectionFactory;
import org.eclipse.jetty.util.BufferUtil;
import org.eclipse.jetty.util.annotation.Name;
import org.eclipse.jetty.util.ssl.SslContextFactory;
public class SpaceCheckingSslConnectionFactory extends SslConnectionFactory
{
public SpaceCheckingSslConnectionFactory(@Name("sslContextFactory") SslContextFactory factory, @Name("next") String nextProtocol)
{
super(factory, nextProtocol);
}
@Override
protected SslConnection newSslConnection(Connector connector, EndPoint endPoint, SSLEngine engine)
{
return new SslConnection(connector.getByteBufferPool(), connector.getExecutor(), endPoint, engine, isDirectBuffersForEncryption(), isDirectBuffersForDecryption())
{
@Override
protected SSLEngineResult unwrap(SSLEngine sslEngine, ByteBuffer input, ByteBuffer output) throws SSLException
{
SSLEngineResult results = super.unwrap(sslEngine, input, output);
if ((results.getStatus() == SSLEngineResult.Status.BUFFER_UNDERFLOW ||
results.getStatus() == SSLEngineResult.Status.OK && results.bytesConsumed() == 0 && results.bytesProduced() == 0) &&
BufferUtil.space(input) == 0)
{
BufferUtil.clear(input);
throw new SSLHandshakeException("Encrypted buffer max length exceeded");
}
return results;
}
};
}
}
This class can be deployed by:
- The resulting class file should be put into a jar file (eg sslfix6072.jar)
- The jar file should be made available to the server. For a normal distribution this can be done by putting the file into ${jetty.base}/lib
- Copy the file
${jetty.home}/modules/ssl.modto${jetty.base}/modules - Edit the
${jetty.base}/modules/ssl.modfile to have the following section:
[lib]
lib/sslfix6072.jar
- Copy the file
${jetty.home}/etc/jetty-https.xmland${jetty.home}/etc/jetty-http2.xmlto${jetty.base}/etc - Edit files
${jetty.base}/etc/jetty-https.xmland${jetty.base}/etc/jetty-http2.xml, changing any reference oforg.eclipse.jetty.server.SslConnectionFactorytoorg.eclipse.jetty.server.ssl.fix6072.SpaceCheckingSslConnectionFactory. For example:
<Call name="addIfAbsentConnectionFactory">
<Arg>
<New class="org.eclipse.jetty.server.ssl.fix6072.SpaceCheckingSslConnectionFactory">
<Arg name="next">http/1.1</Arg>
<Arg name="sslContextFactory"><Ref refid="sslContextFactory"/></Arg>
</New>
</Arg>
</Call>
- Restart Jetty
NVD (es)
En Eclipse Jetty versiones 7.2.2 hasta 9.4.38, versiones 10.0.0.alpha0 hasta 10.0.1 y versiones 11.0.0.alpha0 hasta 11.0.1, el uso de CPU puede alcanzar el 100% al recibir una gran trama TLS no vĂ¡lida.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-28165 changed 2025-08-27 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-26vr-8j45-3r4w changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-28165 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-JENKINS-2021-28165 changed 2026-09-08 | Apache-2.0 |