News

Critical Denial of Service vulnerability in JSON-Java

Giulio Saggin
Giulio Saggin
Monday 4 December 2023
Critical Denial of Service vulnerability in JSON-Java
Github

A recent discovery by ClusterFuzz has unveiled a critical vulnerability, CVE-2023-5072, within JSON-Java versions up to and including 20230618. This flaw, identified as a denial of service (DoS) threat, arises from a parser bug that triggers excessive memory usage when processing even moderately sized input strings.

The vulnerability is in the JSON-Java parser, where an input string of moderate size can result in an indefinite spike in memory consumption.

There are two primary issues: firstly, an exploit allows bypassing a check designed to prevent a JSON object's key from becoming another JSON object. Secondly, if such an event occurs, the key converts into a string using escape characters like \, leading to an escalating number of \ characters within the escaped string through nested JSON objects.

Rated as high severity, this DoS vulnerability has been addressed. However, the remaining risk pertains to existing binaries that haven't undergone updates.

The vulnerability has been rectified through this PR.

Further information and a code example is available at this advisory.

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203