Skip to content
OpenAdvisories
Medium · 5.3 Public exploit CVE-2023-26048 EUVD-2023-1382GHSA-qw69-rqj8-6qw8

OutOfMemoryError for large multipart without filename in Eclipse Jetty

Published Apr 18, 2023 · Updated Feb 13, 2025 · Assigned by GitHub_M

Description

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).

Affected products

VendorProductAffectedFixed
eclipse jetty.project < 9.4.51, >= 10.0.0, < 10.0.14, >= 11.0.0, < 11.0.14 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 jetty9 9.4.52-1 —
Debian 13 jetty9 9.4.52-1 —
Debian 12 jetty9 9.4.50-4+deb12u1 DSA-5507-1
Debian 11 jetty9 9.4.39-3+deb11u2 DSA-5507-1
Debian 10 jetty9 9.4.16-0+deb10u3 DLA-3592-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS jetty No fix yet —
Ubuntu 14.04 LTS jetty No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Single Sign On 7 rh-sso7-keycloak +1 18.0.12-1.redhat_00001.1.el7sso RHSA-2024:0800, RHSA-2024:0799, RHSA-2024:0798
Red Hat Ocp Tools 4 jenkins 2.426.3.1706515686-3.el8 RHSA-2024:0778
Red Hat Ocp Tools 4 jenkins-2-plugins 4.12.1706515741-1.el8 RHSA-2024:0778
Red Hat JBoss EAP 7 eap7-activemq-artemis +15 2.16.0-17.redhat_00051.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-apache-sshd 2.9.3-1.redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-avro 1.11.3-1.redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-guava +1 32.1.1-2.jre_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-hal-console 3.3.20-1.Final_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-hibernate +4 5.3.32-1.Final_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-infinispan +9 11.0.18-1.Final_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-jandex 2.4.4-1.Final_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-jboss-jsp-api_2.3_spec 2.0.1-1.Final_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-jboss-marshalling +1 2.0.14-1.SP1_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-jboss-server-migration +2 1.10.0-33.Final_redhat_00032.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-jboss-xnio-base 3.8.11-1.SP1_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-jbossws-cxf 5.4.9-1.Final_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-jgroups 4.2.23-1.Final_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-undertow 2.2.28-1.SP1_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-weld-ejb +6 3.1.10-2.Final_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-wildfly +4 7.4.14-5.GA_redhat_00002.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-wildfly-java-jdk17 7.4.14-5.GA_redhat_00002.1.el8eap RHSA-2023:7639, RHSA-2023:7638
Red Hat JBoss EAP 7 eap7-wildfly-transaction-client 1.1.16-1.Final_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-yasson 1.0.11-4.redhat_00002.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
ReleasePackageFixed inAdvisory
SLES 15 SP5 jetty-minimal 9.4.51-150200.3.19.2 SUSE-SU-2023:2539-1
SLES 15 SP4 jetty-minimal 9.4.51-150200.3.19.2 SUSE-SU-2023:2539-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Real Time 15 SP3 jetty-minimal 9.4.51-150200.3.19.2 SUSE-SU-2023:2539-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 jetty-minimal 9.4.51-150200.3.19.2 SUSE-SU-2023:2539-1
openSUSE Leap 15.4 jetty-minimal 9.4.51-150200.3.19.2 SUSE-SU-2023:2539-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling cassandra-reaper 4.0.1-r1 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.eclipse.jetty:jetty-server < 9.4.51.v20230217 9.4.51.v20230217 GHSA-qw69-rqj8-6qw8
Maven org.eclipse.jetty:jetty-server >= 10.0.0, < 10.0.14 10.0.14 GHSA-qw69-rqj8-6qw8
Maven org.eclipse.jetty:jetty-server >= 11.0.0, < 11.0.14 11.0.14 GHSA-qw69-rqj8-6qw8

Advisories 14

References