Jetty OOM via multipart, fixed 9.4.51/10.0.14/11.0.14
CVE-2023-26048 Published on April 18, 2023
OutOfMemoryError for large multipart without filename in Eclipse Jetty
Jetty is a java based web server and servlet engine. In affected versions servlets with multipart support (e.g. annotated with `@MultipartConfig`) that call `HttpServletRequest.getParameter()` or `HttpServletRequest.getParts()` may cause `OutOfMemoryError` when the client sends a multipart request with a part that has a name but no filename and very large content. This happens even with the default settings of `fileSizeThreshold=0` which should stream the whole part content to disk. An attacker client may send a large multipart request and cause the server to throw `OutOfMemoryError`. However, the server may be able to recover after the `OutOfMemoryError` and continue its service -- although it may take some time. This issue has been patched in versions 9.4.51, 10.0.14, and 11.0.14. Users are advised to upgrade. Users unable to upgrade may set the multipart parameter `maxRequestSize` which must be set to a non-negative value, so the whole multipart content is limited (although still read into memory).
Vulnerability Analysis
CVE-2023-26048 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a small impact on availability.
Weakness Type
What is a Resource Exhaustion Vulnerability?
The software does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.
CVE-2023-26048 has been classified to as a Resource Exhaustion vulnerability or weakness.
Products Associated with CVE-2023-26048
Want to know whenever a new CVE is published for Eclipse Jetty? stack.watch will email you.
Affected Versions
eclipse jetty.project:- Version < 9.4.51 is affected.
- Version >= 10.0.0, < 10.0.14 is affected.
- Version >= 11.0.0, < 11.0.14 is affected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2023-26048
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| maven | org.eclipse.jetty:jetty-server | >= 11.0.0, < 11.0.14 | 11.0.14 |
| maven | org.eclipse.jetty:jetty-server | >= 10.0.0, < 10.0.14 | 10.0.14 |
| maven | org.eclipse.jetty:jetty-server | < 9.4.51 | 9.4.51 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.