GHSA-crqg-jrpj-fc84
Apache Johnzon Deserialization of Untrusted Data vulnerability
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| Maven | org.apache.johnzon:johnzon-mapper | < 1.2.21 | 1.2.21 |
Details
As written in the advisory (Markdown source, shown as plain text).
A malicious attacker can craft up some JSON input that uses large numbers (numbers such as 1e20000000) that Apache Johnzon will deserialize into BigDecimal and maybe use numbers too large which may result in a slow conversion (Denial of service risk). Apache Johnzon 1.2.21 mitigates this by setting a scale limit of 1000 (by default) to the BigDecimal.
This issue affects Apache Johnzon through 1.2.20.
References
External links from the advisory. They lead to third-party sites.