CVE-2021-25641
Deserializer tampering in Apache Dubbo
Description
Each Apache Dubbo server will set a serialization id to tell the clients which serialization protocol it is working on. But for Dubbo versions before 2.7.8 or 2.6.9, an attacker can choose which serialization id the Provider will use by tampering with the byte preamble flags, aka, not following the server's instruction. This means that if a weak deserializer such as the Kryo and FST are somehow in code scope (e.g. if Kryo is somehow a part of a dependency), a remote unauthenticated attacker can tell the Provider to use the weak deserializer, and then proceed to exploit it.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.alibaba » dubbo | >= 2.5.0, < 2.6.9 | 2.6.9 |
| org.apache.dubbo » dubbo | >= 2.5.0, < 2.7.8 | 2.7.8 |
Blast radius
70% of the dependent artifacts (262) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2,305 |
| 2 hops | 620 |
| 3 hops | 364 |
| 4 hops | 345 |
| 5 hops | 194 |
| 6 hops | 362 |
Most used dependents
- org.apache.dubbo » dubbo-spring-boot-starter156 usages
- org.noear » solon-cloud59 usages
- io.seata » seata-all51 usages
- com.alibaba.cloud » spring-cloud-starter-dubbo24 usages
- org.apache.dubbo » dubbo-spring-boot-actuator19 usages
- com.alibaba.boot » dubbo-spring-boot-starter15 usages
- com.fizzgate » fizz-spring-boot-starter14 usages
- com.alipay.sofa » rpc-enterprise-sofa-boot-starter13 usages
- com.yomahub » tlog-all-spring-boot-starter13 usages
- org.test4j » test4j-junit512 usages
- com.acooly » acooly-component-dubbo11 usages
- org.apache.dubbo » dubbo-spring-boot-autoconfigure9 usages
- org.nutz » nutzboot-starter-dubbo8 usages
- org.test4j » test4j-core6 usages
- com.sinsz.c » bxfs-core6 usages
Computed from the dependency graph of build 20261125.2201 (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
| Advisory | NVD CVE-2021-25641 | nvd.nist.gov |
| Web | thread.html/r99ef7fa35585d3a68762de07e8d2b2bc48b8fa669a03e8d84b9673f3@<dev.dubbo.apache.or ... | lists.apache.org |
