CVE-2023-3223 Undertow: outofmemoryerror due to @multipartconfig handling
Attackers can cause a Denial of Service in Undertow by sending large multipart requests, potentially bypassing file size limits.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-3223?
CVE-2023-3223 is a high-severity denial of service vulnerability in Redhat Jboss Enterprise Application Platform, published on 27 Sep 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A flaw was found in undertow. Servlets annotated with @MultipartConfig may cause an OutOfMemoryError due to large multipart content. This may allow unauthorized users to cause remote Denial of Service (DoS) attack. If the server uses fileSizeThreshold to limit the file size, it's possible to bypass the limit by setting the file name in the request to null.
Weakness: CWE-789
Which versions are affected by CVE-2023-3223?
2 open source packages ship an affected version, including io.undertow:undertow-parent. It affects 7 products.
| Package | Affected | Fixed in |
|---|---|---|
io.undertow:undertow-parent Maven | All versions | 2.2.24.Final |
io.undertow:undertow-parent Maven | All versions | 2.2.24.Final |
Products include Redhat Jboss Enterprise Application Platform, Redhat Jboss Enterprise Application Platform Text-Only Advisories, Redhat Openshift Container Platform, Redhat Openshift Container Platform for Ibm Linuxone, Redhat Openshift Container Platform for Power, Redhat Single Sign-On and 1 more.
How do I fix CVE-2023-3223?
Upgrade io.undertow:undertow-parent to 2.2.24.Final or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2023-3223 being exploited?
There is no known exploitation of CVE-2023-3223 in the wild and no public exploit code.
Other vulnerabilities in Redhat Jboss Enterprise Application Platform
- CVE-2017-12149 Red Hat JBoss Application Server Remote Code Execution
- CVE-2010-1428 Red Hat JBoss Information Disclosure
- CVE-2010-0738 Red Hat JBoss Authentication Bypass
- CVE-2016-3690 Deserialization in n/a
- CVE-2017-7504 Deserialization in JBoss
All Redhat Jboss Enterprise Application Platform vulnerabilities
Sources
Also known as DEBIAN-CVE-2023-3223, GHSA-65h2-wf7m-q2v8, UBUNTU-CVE-2023-3223.