CVE-2024-1023 Io.vertx/vertx-core: memory leak due to the use of netty fastthreadlocal data structures in vertx
Attackers can cause memory leaks in Vert.x HTTP clients by connecting to arbitrary hosts, leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-1023?
CVE-2024-1023 is a medium-severity denial of service vulnerability in Red Hat A-MQ Clients 2, published on 27 Mar 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
A vulnerability in the Eclipse Vert.x toolkit results in a memory leak due to using Netty FastThreadLocal data structures. Specifically, when the Vert.x HTTP client establishes connections to different hosts, triggering the memory leak. The leak can be accelerated with intimate runtime knowledge, allowing an attacker to exploit this vulnerability. For instance, a server accepting arbitrary internet addresses could serve as an attack vector by connecting to these addresses, thereby accelerating the memory leak.
Weakness: CWE-401
Which versions are affected by CVE-2024-1023?
4 open source packages ship an affected version, including io.vertx:vertx-core.
| Package | Affected | Fixed in |
|---|---|---|
io.vertx:vertx-core Maven | From 4.4.5 | 4.4.7 |
io.vertx:vertx-core Maven | From 4.4.5 | 4.4.7 |
io.vertx:vertx-core Maven | From 4.5.0 | 4.5.2 |
io.vertx:vertx-core Maven | From 4.5.0 | 4.5.2 |
How do I fix CVE-2024-1023?
Upgrade io.vertx:vertx-core to a fixed version for your release line: 4.4.7 or 4.5.2.
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-2024-1023 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-1023 exists.
Sources
Also known as GHSA-5667-3wch-7q7w.