CVE-2023-34612
Description
Crafted JSON with cyclic dependencies in ph-json through 9.5.5 causes stack overflow leading to denial of service.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Crafted JSON with cyclic dependencies in ph-json through 9.5.5 causes stack overflow leading to denial of service.
Vulnerability
Description
An issue in ph-json through version 9.5.5 allows attackers to cause a denial of service (DoS) by providing a crafted JSON object with cyclic dependencies [1]. The root cause is insufficient depth or cycle detection during JSON parsing, leading to a stack overflow error [1]. The official description confirms the issue allows unspecified impacts, but the primary evidence shows a StackOverflowError [1][2].
Exploitation
Conditions
Exploitation requires the attacker to supply untrusted JSON input to a service using ph-json. No authentication is needed if the parser runs on user-supplied data [1]. The attack is triggered by nesting arrays or objects in a cycle, causing infinite recursion in methods like _readArray and _readValue [1]. The overflow trace shows repeated calls in the JSON parser, eventually exhausting the call stack [1].
Impact
A successful attack results in a crash of the Java application parsing the JSON, causing a denial of service [1]. The vulnerability does not appear to enable arbitrary code execution or data leakage based on available references [1][2]. The NVD entry references the GitHub issue as the primary source but does not provide further impact details [2].
Mitigation
The issue is reported in the ph-commons GitHub repository, but as of the publication date (2023-06-14), no patch is mentioned in the references [1][2][3]. Users should consider validating or sanitizing JSON input before parsing, or limiting recursion depth. The maintainer was notified via the GitHub issue but a response is not documented in the provided sources.
AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
com.helger.commons:ph-jsonMaven | <= 11.0.4 | — |
Affected products
2- ph-json/ph-jsondescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/advisories/GHSA-mx27-gg24-h2jcghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-34612ghsaADVISORY
- github.com/phax/ph-commons/issues/35ghsaWEB
News mentions
0No linked articles in our index yet.