Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-23639 Overview
CVE-2024-23639 affects the Micronaut Framework, a JVM-based full-stack Java framework for building modular applications in Java, Kotlin, and Groovy. The vulnerability allows drive-by localhost attacks against enabled but unsecured management endpoints. A malicious website can issue HTTP requests to localhost that qualify as CORS "simple requests," bypassing the preflight check that would normally block cross-origin access. Developers running Micronaut locally with management endpoints enabled for convenience face the highest risk. The issue is fixed in Micronaut Framework version 3.8.3.
Critical Impact
An attacker-controlled web page visited by a developer can invoke unsecured Micronaut management endpoints on localhost, enabling disclosure or modification of application state in the local environment.
Affected Products
- Object Computing Micronaut Framework versions prior to 3.8.3
- Local development environments with management endpoints enabled without security
- JVM applications built on Micronaut using Java, Kotlin, or Groovy
Discovery Timeline
- 2024-02-09 - CVE-2024-23639 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-23639
Vulnerability Analysis
Micronaut exposes a set of management endpoints used to introspect and control a running application. When these endpoints are enabled without authentication, any origin capable of issuing an HTTP request to the host can trigger them. Browsers normally guard cross-origin requests with a Cross-Origin Resource Sharing (CORS) preflight check. However, a subset of HTTP requests classified as "simple requests" skip preflight entirely. This classification covers common GET, HEAD, and certain POST requests with standard headers. The vulnerability is categorized under [CWE-15] (External Control of System or Configuration Setting).
Root Cause
The root cause is a missing security constraint on management endpoints combined with reliance on CORS as a boundary. CORS was never designed to protect endpoints from simple requests. When developers enable endpoints such as /env, /beans, or /refresh without attaching authentication filters, the browser does not block cross-origin invocations that meet the simple-request criteria.
Attack Vector
An attacker hosts a malicious page and lures a developer into visiting it while their local Micronaut application listens on localhost. The page issues a simple cross-origin request to http://localhost:<port>/<endpoint>. The browser sends the request without preflight. Micronaut processes it as a legitimate call, and sensitive data is exposed to the attacker page or state-changing operations execute. Production deployments that disable unused endpoints and secure the rest are not meaningfully exposed. Developers are the primary victims.
No verified proof-of-concept code is published. See the GitHub Security Advisory GHSA-583g-g682-crxf and MDN Web Docs on CORS for the request classification details.
Detection Methods for CVE-2024-23639
Indicators of Compromise
- Unexpected HTTP requests to Micronaut management endpoints originating from browser Referer headers pointing to external domains.
- Access log entries for endpoints such as /env, /beans, /loggers, or /refresh on localhost listeners from processes other than developer tooling.
- CORS-related response headers logged on management endpoint responses to cross-origin requests.
Detection Strategies
- Inventory Micronaut applications in the environment and identify versions earlier than 3.8.3.
- Audit application configuration for endpoints.*.enabled: true combined with endpoints.*.sensitive: false.
- Instrument local development builds to log all requests reaching management endpoints with source origin metadata.
Monitoring Recommendations
- Monitor developer workstation egress for repeated outbound connections paired with inbound localhost activity on application ports.
- Alert on management endpoint invocation outside of CI/CD or developer tooling user agents.
- Track Micronaut dependency versions in software bills of materials to catch regressions below 3.8.3.
How to Mitigate CVE-2024-23639
Immediate Actions Required
- Upgrade Micronaut Framework to version 3.8.3 or later across all projects and build pipelines.
- Disable management endpoints that are not required in both development and production configurations.
- Enforce authentication on every enabled management endpoint using Micronaut Security.
Patch Information
The maintainers addressed the issue in Micronaut Framework 3.8.3. Update the micronaut-core dependency version in Gradle or Maven build files and rebuild all downstream artifacts. Review the GitHub Security Advisory GHSA-583g-g682-crxf for the full fix description.
Workarounds
- Bind management endpoints to a dedicated non-localhost interface that browsers cannot reach from arbitrary origins.
- Configure a strict CORS policy that rejects requests from untrusted origins at the framework level.
- Mark all management endpoints as sensitive and require authentication, even in local development.
# Configuration example: application.yml
endpoints:
all:
enabled: false
sensitive: true
health:
enabled: true
sensitive: true
micronaut:
security:
enabled: true
endpoints:
login:
enabled: true
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

