CVE-2022-45693
Description
A stack overflow bug in Jettison < 1.5.2 allows DoS via a crafted map that self-references itself in JSONObject.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A stack overflow bug in Jettison < 1.5.2 allows DoS via a crafted map that self-references itself in JSONObject.
Vulnerability
Details
CVE-2022-45693 is a stack overflow vulnerability in Jettison, a Java library for converting between XML and JSON. The issue resides in the JSONObject constructor when processing a Map parameter. If the map contains a self-referencing entry (i.e., the map value is the map itself), the recursive serialization logic in Jettison will continue indefinitely, causing a StackOverflowError [1][3]. This occurs because the library lacks a depth or recursion check for self-referencing maps before the fix in version 1.5.2 [1].
Attack
Vector
The vulnerability can be triggered by providing a crafted string that, when parsed, produces a map with a self-referential structure. The official proof-of-concept shows that a HashMap<String,Object> with an entry pointing to itself, passed to new JSONObject(map), immediately triggers a stack overflow [3]. An attacker can exploit this remotely by sending malformed JSON data if the target application uses Jettison to deserialize untrusted input without adequate validation.
Impact
Successful exploitation results in a Denial of Service (DoS) condition. The StackOverflowError crashes the JVM thread processing the request, making the application unresponsive [1]. Since no authentication is required to send the malicious payload (if the endpoint is accessible), this vulnerability poses a significant availability risk to services that accept and parse JSON using Jettison [1].
Mitigation
The vulnerability is fixed in Jettison version 1.5.2, which introduced a recursion depth limit in JSONObject (default 500) to prevent such self-referencing loops [2]. Users should upgrade to version 1.5.2 or later. If immediate upgrade is not possible, a workaround is to apply input validation that detects deeply nested or self-referential structures before passing data to Jettison [1][2].
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 |
|---|---|---|
org.codehaus.jettison:jettisonMaven | < 1.5.2 | 1.5.2 |
Affected products
7- Jettison/Jettisondescription
- osv-coords6 versionspkg:apk/chainguard/druidpkg:apk/chainguard/druid-compatpkg:apk/wolfi/druidpkg:apk/wolfi/druid-compatpkg:maven/org.codehaus.jettison/jettisonpkg:rpm/opensuse/jettison&distro=openSUSE%20Tumbleweed
< 35.0.1-r5+ 5 more
- (no CPE)range: < 35.0.1-r5
- (no CPE)range: < 34.0.0-r6
- (no CPE)range: < 35.0.1-r5
- (no CPE)range: < 34.0.0-r6
- (no CPE)range: < 1.5.2
- (no CPE)range: < 1.5.3-1.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- github.com/advisories/GHSA-grr4-wv38-f68wghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-45693ghsaADVISORY
- www.debian.org/security/2023/dsa-5312ghsavendor-advisoryWEB
- github.com/jettison-json/jettison/issues/52ghsaWEB
- lists.debian.org/debian-lts-announce/2022/12/msg00045.htmlghsamailing-listWEB
News mentions
0No linked articles in our index yet.