CVE-2023-34617
Java vulnerability analysis and mitigation

Overview

An issue was discovered in Genson through version 1.6 that allows attackers to cause a denial of service via crafted objects that use cyclic dependencies. The vulnerability was disclosed on May 26, 2023, and is tracked as CVE-2023-34617. The affected component is the JSON parsing functionality in the Genson library (NVD, GitHub Issue).

Technical details

The vulnerability stems from the library's handling of deeply nested JSON structures. When parsing untrusted JSON input, the parser can crash with a StackOverflowError due to recursive processing of nested arrays or JSON objects. The issue has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, indicating that it can be exploited remotely without requiring privileges or user interaction (NVD).

Impact

The vulnerability can be exploited to cause denial of service conditions in applications using the Genson library. When processing maliciously crafted JSON input with cyclic dependencies, the application can crash due to stack overflow, making the service unavailable (GitHub Issue).

Mitigation and workarounds

Two potential solutions have been suggested based on similar vulnerabilities in other JSON parsers: 1) Adding depth tracking to limit parsing depth, similar to jackson-databind's approach, or 2) Changing the recursive processing to use stack+iteration processing, similar to GSON's solution (GitHub Issue).

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