CRITICAL 9.8

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)

ArtifactAffected versionsFixed 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

2affected artifacts
32affected versions
372dependent artifacts (est.)
4,190dependent versions

70% of the dependent artifacts (262) still pull an affected version in their latest release.

DepthDependent versions
Direct
2,305
2 hops
620
3 hops
364
4 hops
345
5 hops
194
6 hops
362

Most used dependents

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.