CVE-2024-1300 Io.vertx:vertx-core: memory leak when a tcp server is configured with tls and sni support

Medium 5.4 Published Updated

Attackers can cause a denial of service by exhausting memory in Vert.x TCP servers using TLS and SNI with unknown server names.

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-1300?

CVE-2024-1300 is a medium-severity denial of service vulnerability in Red Hat A-MQ Clients 2, published on 2 Apr 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 causes a memory leak in TCP servers configured with TLS and SNI support. When processing an unknown SNI server name assigned the default certificate instead of a mapped certificate, the SSL context is erroneously cached in the server name map, leading to memory exhaustion. This flaw allows attackers to send TLS client hello messages with fake server names, triggering a JVM out-of-memory error.

Weakness: CWE-772

Which versions are affected by CVE-2024-1300?

4 open source packages ship an affected version, including io.vertx:vertx-core.

PackageAffectedFixed in
io.vertx:vertx-core MavenFrom 4.3.44.4.8
io.vertx:vertx-core MavenFrom 4.3.44.4.8
io.vertx:vertx-core MavenFrom 4.5.04.5.3
io.vertx:vertx-core MavenFrom 4.5.04.5.3

How do I fix CVE-2024-1300?

Upgrade io.vertx:vertx-core to a fixed version for your release line: 4.4.8 or 4.5.3.

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-1300 being exploited?

There is no known exploitation of CVE-2024-1300 in the wild and no public exploit code.

Sources

Also known as GHSA-9ph3-v2vh-3qx7.

Is CVE-2024-1300 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free