CVE-2022-25845
Unsafe deserialization in com.alibaba:fastjson
Description
The package com.alibaba:fastjson before 1.2.83 is vulnerable to Deserialization of Untrusted Data by bypassing the default autoType shutdown restrictions, which is possible under certain conditions. Exploiting this vulnerability allows attacking remote servers. Workaround: If upgrading is not possible, you can enable safeMode.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.alibaba » fastjson | >= 1.2.25, < 1.2.83 | 1.2.83 |
Blast radius
67% of the dependent artifacts (9,021) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 43,121 |
| 2 hops | 48,827 |
| 3 hops | 35,432 |
| 4 hops | 16,436 |
| 5 hops | 6,853 |
| 6 hops | 2,482 |
Most used dependents
- redis.clients » jedis2,971 usages
- com.alibaba » druid1,647 usages
- org.apache.kafka » kafka1,450 usages
- org.cyclonedx » cyclonedx-maven-plugin686 usages
- org.apache.camel.springboot » camel-core-starter558 usages
- com.alibaba.cloud » spring-cloud-starter-alibaba-nacos-discovery514 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- com.alibaba.nacos » nacos-client471 usages
- com.antgroup.antchain.openapi » antchain-util448 usages
- com.alibaba.cloud » spring-cloud-starter-alibaba-nacos-config400 usages
- cn.com.antcloud.api » antcloud-api-sdk350 usages
- org.apache.rocketmq » rocketmq-client329 usages
- org.apache.dubbo » dubbo321 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.apache.storm » storm-core263 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-25845
- Webhttps://github.com/alibaba/fastjson/commit/35db4adad70c32089542f23c272def1ad920a60d
- Webhttps://github.com/alibaba/fastjson/commit/8f3410f81cbd437f7c459f8868445d50ad301f15
- Packagehttps://github.com/alibaba/fastjson
- Webhttps://github.com/alibaba/fastjson/releases/tag/1.2.83
- Webhttps://github.com/alibaba/fastjson/wiki/security_update_20220523
- Webhttps://snyk.io/vuln/SNYK-JAVA-COMALIBABA-2859222
- Webhttps://www.ddosi.org/fastjson-poc
- Webhttps://www.oracle.com/security-alerts/cpujul2022.html
