CVE-2023-34612
Java vulnerability analysis and mitigation

Overview

An issue was discovered in ph-json through version 9.5.5 that allows attackers to cause a denial of service (DoS) or other unspecified impacts via crafted objects that use cyclic dependencies. The vulnerability was disclosed on June 14, 2023, and has been assigned CVE-2023-34612 (NVD).

Technical details

The vulnerability 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. The issue manifests when parsing untrusted JSON strings, where deeply nested arrays or JSON objects can trigger a stack overflow error. The vulnerability is classified as CWE-787 (Out-of-bounds Write) (NVD).

Impact

When exploited, this vulnerability can lead to denial of service conditions by causing the application to crash through stack overflow errors. The attack can be triggered by processing specially crafted JSON input with cyclic dependencies (GitHub Issue).

Exploitability

The vulnerability is exploitable remotely without requiring authentication or user interaction. A proof of concept exists demonstrating how to trigger the stack overflow error by creating deeply nested JSON arrays with a nesting depth of 9999 levels (GitHub Issue).

Mitigation and workarounds

Two potential solutions have been suggested: 1) Adding a depth variable to record the current parsing depth and throwing an exception if it exceeds a certain threshold, similar to jackson-databind's approach, or 2) Changing the recursive processing on deeply nested arrays or JSON objects to stack+iteration processing, following GSON's solution (GitHub Issue).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-63219HIGH8.6
  • Java logoJava
  • org.geonetwork-opensource:gn-services
NoYesSep 03, 2026
CVE-2026-49464HIGH8.1
  • Java logoJava
  • nl.nl-portal:taak
NoYesSep 11, 2026
CVE-2026-55864HIGH7.7
  • Java logoJava
  • org.geonetwork-opensource:gn-web-app
NoYesSep 09, 2026
CVE-2026-49463MEDIUM6.5
  • Java logoJava
  • nl.nl-portal:besluiten
NoYesSep 11, 2026
CVE-2026-49439MEDIUM4.3
  • Java logoJava
  • io.openremote:openremote-manager
NoYesSep 11, 2026

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