Micronaut vulnerable to DoS via crafted form-urlencoded body binding with descending array indices
micronaut-projects micronaut-core
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| io.micronaut:micronaut-json-core Maven |
|
|
micronaut-projects micronaut-core
| Product | Affected | Fixed in |
|---|---|---|
| io.micronaut:micronaut-json-core Maven |
|
|
Micronaut Framework is a JVM-based full stack Java framework designed for building modular, easily testable JVM applications. Versions prior to both 4.10.16 and 3.10.5 do not correctly handle descending array index order during form-urlencoded body binding in theJsonBeanPropertyBinder::expandArrayToThreshold, which allows remote attackers to cause a DoS (non-terminating loop, CPU exhaustion, and OutOfMemoryError) via crafted indexed form parameters (e.g., authors[1].name followed by authors[0].name). This issue has been fixed in versions 4.10.16 and 3.10.5.
From the CVE record · GitHub_M
Micronaut JSON core mishandles descending array indexes while binding form-urlencoded request bodies. A remote attacker can send crafted indexed form parameters to trigger a non-terminating loop, CPU exhaustion, or an OutOfMemoryError; the input does not specify an authentication requirement or user interaction.
Check applications using Maven package io.micronaut:micronaut-json-core in the affected ranges: >=4.0.0-M1 <4.10.16, >=3.9.0 <3.10.5, or <3.8.13.