CVE-2024-23639
Micronaut management endpoints vulnerable to drive-by localhost attack
Description
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" 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.
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| io.micronaut » micronaut-http-server | < 3.8.3 | 3.8.3 |
| io.micronaut » micronaut-http-server-netty | < 3.8.3 | 3.8.3 |
| io.micronaut » micronaut-http-server-tck | < 3.8.3 | 3.8.3 |
Blast radius
50% of the dependent artifacts (86) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2,530 |
| 2 hops | 1,575 |
| 3 hops | 19 |
| 4 hops | 3 |
Most used dependents
- io.micronaut » micronaut-http-server-netty111 usages
- org.apache.ignite » ignite-configuration30 usages
- io.micronaut.security » micronaut-security28 usages
- org.apache.ignite » ignite-network20 usages
- io.micronaut.views » micronaut-views-core19 usages
- com.github.seratch » jslack18 usages
- org.apache.ignite » ignite-schema18 usages
- io.micronaut.openapi » micronaut-openapi16 usages
- org.apache.ignite » ignite-cluster-management15 usages
- org.apache.ignite » ignite-metrics15 usages
- io.micronaut.security » micronaut-security-jwt14 usages
- io.micronaut.jaxrs » micronaut-jaxrs-server14 usages
- io.micronaut.graphql » micronaut-graphql13 usages
- io.micronaut.servlet » micronaut-servlet-core12 usages
- io.micronaut.servlet » micronaut-servlet-engine12 usages
Computed from the dependency graph of build 20261129.2353 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2024-23639 | nvd.nist.gov |
| Package | micronaut-projects/micronaut-core | github.com |
| Web | micronaut-projects/micronaut-core advisory GHSA-583g-g682-crxf | github.com |
| Web | micronaut-projects/micronaut-core pull request #8642 | github.com |
| Web | micronaut-projects/micronaut-core commit 01adb21 | github.com |
| Web | en-US/docs/Web/HTTP/CORS | developer.mozilla.org |
