CVE-2023-5072
Java vulnerability analysis and mitigation

Overview

CVE-2023-5072 affects JSON-Java versions up to and including 20230618. The vulnerability is a Denial of Service (DoS) issue where a bug in the parser means that an input string of modest size can lead to indefinite amounts of memory being used (NVD, Debian Tracker).

Technical details

The vulnerability stems from a confusion between \0 and EOF in JSONTokener.next(). The method uses a 0 return to indicate EOF, but 0 is also returned when an actual \0 character is read. In certain circumstances, this can be used to circumvent parser checks, potentially leading to OutOfMemoryError even with relatively small input strings (GitHub Issue). The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

When successfully exploited, this vulnerability can cause a Denial of Service (DoS) condition through excessive memory consumption. An attacker can craft a JSON document that, when parsed, leads to indefinite amounts of memory being used, potentially causing the application to become unresponsive or crash (NVD, GitHub Issue).

Mitigation and workarounds

Users should upgrade to a version of JSON-Java newer than 20230618. The vulnerability has been fixed in subsequent releases. For systems that cannot be immediately updated, it is recommended to implement input validation and limit the size of JSON documents being processed (NVD).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management