GitHub Advisory Database
GHSA-3vqj-43w4-2q58
json stack overflow vulnerability
Details
A stack overflow in the XML.toJSONObject component of hutool-json v5.8.10 and org.json:json before version 20230227 allows attackers to cause a Denial of Service (DoS) via crafted JSON or XML data.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Maven | cn.hutool:hutool-json | All versions before 5.8.25 (fixed in 5.8.25) |
| Maven | org.json:json | All versions before 20230227 (fixed in 20230227) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-45688
- https://github.com/dromara/hutool/issues/2748
- https://github.com/stleary/JSON-java/issues/708
- https://github.com/dromara/hutool/commit/6a2b585de0a380e8c12016dbaa1620b69be11b8c
- https://github.com/stleary/JSON-java/commit/a6e412bded7a0ad605adfeca029318f184c32102
- https://github.com/dromara/hutool/releases/tag/5.8.25