HIGH 7.5
CVE-2022-45688
json stack overflow vulnerability
Description
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 Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| cn.hutool » hutool-json | < 5.8.25 | 5.8.25 |
| org.json » json | < 20230227 | 20230227 |
Blast radius
2affected artifacts
226affected versions
37,387dependent artifacts (est.)
1,990,283dependent versions
60% of the dependent artifacts (22,797) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 151,009 |
| 2 hops | 484,029 |
| 3 hops | 600,564 |
| 4 hops | 445,166 |
| 5 hops | 226,834 |
| 6 hops | 82,681 |
Most used dependents
- org.springframework.boot » spring-boot-starter-test20,993 usages
- org.scalatest » scalatest20,465 usages
- org.springframework.boot » spring-boot-configuration-processor15,807 usages
- org.renjin » renjin-maven-plugin13,886 usages
- com.alibaba » fastjson7,978 usages
- org.jetbrains.kotlinx » kotlinx-coroutines-android7,357 usages
- org.jetbrains.kotlin » kotlin-android-extensions-runtime6,517 usages
- org.apache.hadoop » hadoop-common3,482 usages
- com.github.spotbugs » spotbugs-maven-plugin3,264 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.kafka » kafka-clients3,135 usages
- org.clojure » clojurescript3,073 usages
- cn.hutool » hutool-all3,038 usages
- redis.clients » jedis2,971 usages
- org.apache.spark » spark-core2,899 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-45688
- Webhttps://github.com/dromara/hutool/issues/2748
- Webhttps://github.com/stleary/JSON-java/issues/708
- Webhttps://github.com/dromara/hutool/commit/6a2b585de0a380e8c12016dbaa1620b69be11b8c
- Webhttps://github.com/stleary/JSON-java/commit/a6e412bded7a0ad605adfeca029318f184c32102
- Webhttps://github.com/dromara/hutool/releases/tag/5.8.25
