json stack overflow vulnerability
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | cn.hutool:hutool-json | < 5.8.25 | 5.8.25 |
| Java / Kotlin (Maven) | org.json:json | < 20230227 | 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
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Weakness (CWE)
CWE-787- Platform
- Java / Kotlin (Maven)
- Package
cn.hutool:hutool-json, org.json:json- Disclosed
- 13.12.2022
- Updated
- 11.10.2026 13:19
Sources and licenses
OSV / GitHub Advisory Database - GHSA-3vqj-43w4-2q58 - CC BY 4.0
Vulnerability history: org.json:json
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 2
- First → latest
- 12.2022 11.2023
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 2
Disclosures per year
- 2022: 1
- 2023: 1
- 2024: 0
- 2025: 0
- 2026: 0
-
json stack overflow vulnerability this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.