Ultrajson · Ultrajson · CVE-2021-45958
Name of the Vulnerable Software and Affected Versions:
UltraJSON (aka ujson) versions 1.34 through 5.1.0
Description:
The issue is a stack-based buffer overflow in `Buffer AppendIndentUnchecked`, which is called from `encode`. This can be exploited, for example, by using a large amount of indentation. There is a dispute regarding the confirmation of this finding, with some third parties arguing that the issue is not a confirmed vulnerability due to a change in the AFLplusplus project.
Recommendations:
For versions 1.34 through 5.1.0, consider disabling the `Buffer AppendIndentUnchecked` function or restricting its use until a patch is available. As a temporary workaround, avoid using excessive indentation in the `encode` function to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this vulnerability.