CVE-2024-23639 micronaut-core management endpoints vulnerable to drive-by localhost attack

Medium 5.1 Published Updated

Attackers can exploit unsecured management endpoints via drive-by localhost attacks to access sensitive data or bypass security controls in development environments.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-23639?

CVE-2024-23639 is a medium-severity server-side request forgery vulnerability in micronaut-projects micronaut-core, published on 9 Feb 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Micronaut Framework is a modern, JVM-based, full stack Java framework designed for building modular, easily testable JVM applications with support for Java, Kotlin and the Groovy language. Enabled but unsecured management endpoints are susceptible to drive-by localhost attacks. While not typical of a production application, these attacks may have more impact on a development environment where such endpoints may be flipped on without much thought. A malicious/compromised website can make HTTP requests to `localhost`. Normally, such requests would trigger a CORS preflight check which would prevent the request; however, some requests are "simple" and do not require a preflight check. These endpoints, if enabled and not secured, are vulnerable to being triggered. Production environments typically disable unused endpoints and secure/restrict access to needed endpoints. A more likely victim is the developer in their local development host, who has enabled endpoints without security for the sake of easing development. This issue has been addressed in version 3.8.3. Users are advised to upgrade.

Weakness: CWE-664, CWE-610, CWE-15

Which versions are affected by CVE-2024-23639?

6 open source packages ship an affected version, including io.micronaut:micronaut-http-server, io.micronaut:micronaut-http-server-netty and io.micronaut:micronaut-http-server-tck. It affects 1 product.

PackageAffectedFixed in
io.micronaut:micronaut-http-server MavenAll versions3.8.3
io.micronaut:micronaut-http-server MavenAll versions3.8.3
io.micronaut:micronaut-http-server-netty MavenAll versions3.8.3
io.micronaut:micronaut-http-server-netty MavenAll versions3.8.3
io.micronaut:micronaut-http-server-tck MavenAll versions3.8.3
io.micronaut:micronaut-http-server-tck MavenAll versions3.8.3

Products include Objectcomputing Micronaut.

How do I fix CVE-2024-23639?

Upgrade io.micronaut:micronaut-http-server to 3.8.3 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2024-23639 being exploited?

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

Sources

Also known as GHSA-583g-g682-crxf.

Is CVE-2024-23639 in your software?

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

Check your SBOMs for free