Vulnerabilities in pkg:maven/io.micronaut/micronaut-http-server-netty
PACKAGECVE-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.
pkg:maven/io.micronaut/micronaut-http-server-netty
Vulnerability advisories affecting package pkg:maven/io.micronaut/micronaut-http-server-netty. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-583g-g682-crxf | CVE-2024-23639 | MODERATE | Micronaut management endpoints vulnerable to drive-by localhost attack |
| GHSA-cjx7-399x-p2rj | CVE-2021-32769 | HIGH | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in micronaut-core |
CVE-2024-23639 at a Glance
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).
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.
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-http-server</artifactId>
<version>3.8.3</version>
</dependency>
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-http-server-netty</artifactId>
<version>3.8.3</version>
</dependency>
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-http-server-tck</artifactId>
<version>3.8.3</version>
</dependency>
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
CVE-2024-23639 Affected Micronaut http server Versions
3 component(s)| 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?
Which Micronaut http server versions are affected?
What version fixes CVE-2024-23639?
Is micronaut-http-server affected?
Is micronaut-http-server-netty affected?
What is the CVSS score of CVE-2024-23639?
What CWE is associated with CVE-2024-23639?
How can I check Maven dependencies for CVE-2024-23639?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}