Memory leak in micronaut-core
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.
Summary
Micronaut is a JVM-based, full stack Java framework designed for building JVM web applications with support for Java, Kotlin and the Groovy language. In affected versions sending an invalid Content Type header leads to memory leak in DefaultArgumentConversionContext as this type is erroneously used in static state. ### Impact Sending an invalid Content Type header leads to memory leak in `DefaultArgumentConversionContext` as this type is erroneously used in static state. ### Patches The problem is patched in Micronaut 3.2.7 and above. ### Workarounds The default content type binder can be replaced in an existing Micronaut application to mitigate the issue: ```java package example; import java.util.List; import io.micronaut.context.annotation.Replaces; import io.micronaut.core.convert.ConversionService; import io.micronaut.http.MediaType; import io.micronaut.http.bind.DefaultRequestBinderRegistry; import io.micronaut.http.bind.binders.RequestArgumentBinder; import jakarta.inject.Singleton; @Singleton @Replaces(DefaultRequestBinderRegistry.class) class FixedRequestBinderRegistry extends DefaultRequestBinderRegistry { public FixedRequestBinderRegistry(ConversionService conversionService, List<RequestArgumentBinder> binders) { super(conversionService, binders); } @Override protected void registerDefaultConverters(ConversionService<?> conversionService) { super.registerDefaultConverters(conversionService); conversionService.addConverter(CharSequence.class, MediaType.class, charSequence -> { try { return MediaType.of(charSequence); } catch (IllegalArgumentException e) { return null; } }); } } ``` ### References Commit that introduced the vulnerability https://github.com/micronaut-projects/micronaut-core/commit/b8ec32c311689667c69ae7d9f9c3b3a8abc96fe3 ### For more information If you have any questions or comments about this advisory: * Open an issue in [Micronaut Core](https://github.com/micronaut-projects/micronaut-core/issues) * Email us at [[email protected]](mailto:[email protected])
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| micronaut-projects | micronaut-core | before 3.2.7 | 3.2.7 | Patch available | CNA |
| — | io.micronaut:micronaut-http (Maven) | before 3.2.7 | 3.2.7 | Patch available | GHSA-2457-2263-mm9f |
- micronaut-core Vendormicronaut-projects Affected before 3.2.7 Fixed in 3.2.7 Patch available CNA
- io.micronaut:micronaut-http (Maven) Vendor— Affected before 3.2.7 Fixed in 3.2.7 Patch available GHSA-2457-2263-mm9f
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:objectcomputing:micronaut:*:*:*:*:*:*:*:* | before 3.2.7 | Vulnerable | micronaut-projects |
- cpe:2.3:a:objectcomputing:micronaut:*:*:*:*:*:*:*:* Versions before 3.2.7 Vulnerable ·micronaut-projects
Remediation
- Fix · CNA micronaut-core (micronaut-projects) Fixed in 3.2.7
- Fix · GHSA-2457-2263-mm9f io.micronaut:micronaut-http (Maven) Fixed in 3.2.7 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-21700
- 2026-10-03 Alias added: GHSA-2457-2263-mm9f
References
Patch 2
More micronaut-projects Micronaut vulnerabilities
- TI-2026-25460 Micronaut vulnerable to DoS via crafted form-urlencoded body binding with descending array indices CVSS 4.0HIGH 8.2
- TI-2020-06133 All versions of io.micronaut:micronaut-http-client before 1.2.11 and all versions from… CVSS 3.1CRITICAL 9.8
- TI-2026-25459 Micronaut Framework vulnerable to a Denial of Service in HTML error response caching CVSS 3.1HIGH 7.5
- TI-2021-12436 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in micronaut-core CVSS 3.1HIGH 7.5
- TI-2024-15658 micronaut-core management endpoints vulnerable to drive-by localhost attack CVSS 3.1HIGH 7.8
Sources
- CVE-2022-21700 · CVE Program
- CVE-2022-21700 · NVD
- FIRST EPSS
- GHSA-2457-2263-mm9f · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences