Apache Johnzon Deserialization of Untrusted Data vulnerability
Moderate severity
GitHub Reviewed
Published
Jul 7, 2023
to the GitHub Advisory Database
•
Updated Nov 10, 2023
Package
Affected versions
< 1.2.21
Patched versions
1.2.21
Description
Published by the National Vulnerability Database
Jul 7, 2023
Published to the GitHub Advisory Database
Jul 7, 2023
Reviewed
Jul 7, 2023
Last updated
Nov 10, 2023
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