CVE-2024-23639: Micronaut http server Micronaut Management Endpoints Vulnerable To Vulnerability

MODERATE
Advisory Identifier: GHSA-583g-g682-crxf
CVSS 5.1
CWE-15 CWE-664 CWE-610
Published
Advisory Summary

CVE-2024-23639 is a MODERATE (CVSS 5.1) micronaut management endpoints vulnerable to vulnerability (CWE-15: External Control of System or Configuration Setting) affecting Micronaut http server libraries in the Maven ecosystem. The issue involves micronaut management endpoints vulnerable to drive-by localhost attack. Remediation is available by upgrading affected packages to version 3.8.3.

CVE-2024-23639 at a Glance

CVE Identifier CVE-2024-23639
GHSA Identifier GHSA-583g-g682-crxf
Severity MODERATE
CVSS v3.1 Base Score 5.1
CWE Classification CWE-15: External Control of System or Configuration Setting
Affected Product Micronaut http server
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2024-23639

To remediate this vulnerability, upgrade all affected Micronaut http server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

io.micronaut:micronaut-http-server fixed: 3.8.3
<dependency>
    <groupId>io.micronaut</groupId>
    <artifactId>micronaut-http-server</artifactId>
    <version>3.8.3</version>
</dependency>
io.micronaut:micronaut-http-server-netty fixed: 3.8.3
<dependency>
    <groupId>io.micronaut</groupId>
    <artifactId>micronaut-http-server-netty</artifactId>
    <version>3.8.3</version>
</dependency>
io.micronaut:micronaut-http-server-tck fixed: 3.8.3
<dependency>
    <groupId>io.micronaut</groupId>
    <artifactId>micronaut-http-server-tck</artifactId>
    <version>3.8.3</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=io.micronaut

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-23639, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=io.micronaut

Analyze the terminal output to locate any version of Micronaut http server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.8.3), your application is affected.

Note: The mvn dependency:tree -Dincludes=io.micronaut command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-15: External Control of System or Configuration Setting, where one or more system settings or configuration elements can be externally controlled by a user. In Micronaut http server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary 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. ### Details 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"](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#simple_requests) and do not require a preflight check. These endpoints, if enabled and not secured, are vulnerable to being triggered. ### Impact 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.

CVE-2024-23639 Affected Micronaut http server Versions

3 component(s)
Fixed Versions:
3.8.3
Product / Package Ecosystem Affected Versions Fixed Version
io.micronaut:micronaut-http-server
Maven
< 3.8.3
3.8.3
io.micronaut:micronaut-http-server-netty
Maven
< 3.8.3
3.8.3
io.micronaut:micronaut-http-server-tck
Maven
< 3.8.3
3.8.3

References

Frequently Asked Questions

What is CVE-2024-23639?
CVE-2024-23639 is a security vulnerability in Micronaut http server involving Micronaut management endpoints vulnerable to drive-by localhost attack under CWE-15: External Control of System or Configuration Setting.
Which Micronaut http server versions are affected?
Affected versions include releases prior to 3.8.3 across affected packages: io.micronaut:micronaut-http-server, io.micronaut:micronaut-http-server-netty, io.micronaut:micronaut-http-server-tck.
What version fixes CVE-2024-23639?
Upgrading to 3.8.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is micronaut-http-server affected?
Yes, io.micronaut:micronaut-http-server is affected in releases prior to 3.8.3. Upgrade your dependency to 3.8.3 or later.
Is micronaut-http-server-netty affected?
Yes, io.micronaut:micronaut-http-server-netty is affected in releases prior to 3.8.3. Upgrade your dependency to 3.8.3 or later.
What is the CVSS score of CVE-2024-23639?
CVE-2024-23639 has a CVSS v3.1 base score of 5.1 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L.
What CWE is associated with CVE-2024-23639?
CVE-2024-23639 is classified under CWE-15: External Control of System or Configuration Setting (One or more system settings or configuration elements can be externally controlled by a user.).
How can I check Maven dependencies for CVE-2024-23639?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.micronaut'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-583g-g682-crxf",
  "modified" : "2024-02-09T15:19:15Z",
  "published" : "2024-02-09T15:19:15Z",
  "aliases" : [ "CVE-2024-23639" ],
  "summary" : "Micronaut management endpoints vulnerable to drive-by localhost attack",
  "details" : "### Summary\nEnabled 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.\n\n### Details\nA 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\"](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#simple_requests) and do not require a preflight check. These endpoints, if enabled and not secured, are vulnerable to being triggered.\n\n### Impact\nProduction 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.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.micronaut:micronaut-http-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.8.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.micronaut:micronaut-http-server-netty"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.8.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.micronaut:micronaut-http-server-tck"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.8.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/micronaut-projects/micronaut-core/security/advisories/GHSA-583g-g682-crxf"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-23639"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/micronaut-projects/micronaut-core/pull/8642"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/micronaut-projects/micronaut-core/commit/01adb21e57137caaf7004313d2055c5a78b1f47b"
  }, {
    "type" : "WEB",
    "url" : "https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#simple_requests"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/micronaut-projects/micronaut-core"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-15", "CWE-610", "CWE-664" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-09T15:19:15Z",
    "nvd_published_at" : "2024-02-09T01:15:09Z"
  }
}