CVE-2022-45690 hutool-json stack overflow vulnerability
Attackers can cause a Denial of Service in applications using hutool-json by sending crafted JSON or XML data that triggers a stack overflow.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-45690?
CVE-2022-45690 is a high-severity denial of service vulnerability in n/a, published on 13 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A stack overflow in the org.json.JSONTokener.nextValue::JSONTokener.java component of hutool-json v5.8.10 allows attackers to cause a Denial of Service (DoS) via crafted JSON or XML data.
Weakness: CWE-787
Which versions are affected by CVE-2022-45690?
2 open source packages ship an affected version, including cn.hutool:hutool-json. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
cn.hutool:hutool-json Maven | All versions | 5.8.11 |
cn.hutool:hutool-json Maven | All versions | 5.8.11 |
Products include Hutool Hutool, Stleary Json-Java.
How do I fix CVE-2022-45690?
Upgrade cn.hutool:hutool-json to 5.8.11 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-45690 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-45690 exists.
Other vulnerabilities in n/a
Sources
Also known as GHSA-whgh-g24c-3j5q.