CVE-2025-1948: Eclipse Jetty HTTP/2 client can force the server to allocate a humongous byte buffer that may lead to OoM and subsequently the JVM to exit
Original Report In Eclipse Jetty versions 12.0.0 to 12.0.16 included, an HTTP/2 client can specify a very large value for the HTTP/2 settings parameter SETTINGSMAXHEADERLISTSIZE. The Jetty HTTP/2 server does not perform validation on this setting, and tries to allocate a ByteBuffer of the specified capacity to encode HTTP responses, likely resulting in OutOfMemoryError being thrown, or even the JVM process exiting.
Published May 8, 2025
Affected packages
org.eclipse.jetty.http2:jetty-http2-common
- Ecosystem
- Maven
- Affected
- >= 12.0.0, <= 12.0.16
- Fixed in
- 12.0.17
- Check
mvn dependency:tree -Dincludes=org.eclipse.jetty.http2:jetty-http2-common
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Original Report
In Eclipse Jetty versions 12.0.0 to 12.0.16 included, an HTTP/2 client can specify a very large value for the HTTP/2 settings parameter SETTINGS_MAX_HEADER_LIST_SIZE. The Jetty HTTP/2 server does not perform validation on this setting, and tries to allocate a ByteBuffer of the specified capacity to encode HTTP responses, likely resulting in OutOfMemoryError being thrown, or even the JVM process exiting.
Impact
Remote peers can cause the JVM to crash or continuously report OOM.
Patches
12.0.17
Workarounds
No workarounds.
References
https://github.com/jetty/jetty.project/issues/12690
Credited to bjorncs.
References
- https://github.com/jetty/jetty.project/security/advisories/GHSA-889j-63jv-qhr8
- https://nvd.nist.gov/vuln/detail/CVE-2025-1948
- https://github.com/jetty/jetty.project/issues/12690
- https://github.com/jetty/jetty.project/commit/c8c2515936ef968dc8a3cecd9e79d1e69291e4bb
- https://gitlab.eclipse.org/security/cve-assignement/-/issues/56
- https://github.com/advisories/GHSA-889j-63jv-qhr8
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
