High

json stack overflow vulnerability

  • Disclosed: 13.12.2022
  • Updated: 11.10.2026 13:19

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.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) cn.hutool:hutool-json < 5.8.25 5.8.25
Java / Kotlin (Maven) org.json:json < 20230227 20230227

References

CVSS score 7.5/10
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: cn.hutool:hutool-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
6
First → latest
12.2022 09.2023
Without a fix
3
Exploited in attacks
0

Severity breakdown

  • Critical 2
  • High 2
  • Medium 1
  • Low 1

Disclosures per year

  1. 2022: 3
  2. 2023: 3
  3. 2024: 0
  4. 2025: 0
  5. 2026: 0
  1. High · 7.5 CVE-2023-42278 < 5.8.22 5.8.22
  2. Critical · 9.8 CVE-2023-42277 <= 5.8.21 no fix
  3. Critical · 9.8 CVE-2023-42276 <= 5.8.21 no fix
  4. json stack overflow vulnerability this entry
    High · 7.5 CVE-2022-45688 < 5.8.25 5.8.25
  5. Low CVE-2022-45689 <= 5.8.10 no fix
  6. Medium CVE-2022-45690 < 5.8.11 5.8.11

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.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.