CVE-2021-36162
Remote Code Execution in Apache Dubbo
Description
Apache Dubbo supports various rules to support configuration override or traffic routing (called routing in Dubbo). These rules are loaded into the configuration center (eg: Zookeeper, Nacos, ...) and retrieved by the customers when making a request in order to find the right endpoint. When parsing these YAML rules, Dubbo customers will use SnakeYAML library to load the rules which by default will enable calling arbitrary constructors. An attacker with access to the configuration center he will be able to poison the rule so when retrieved by the consumers, it will get RCE on all of them. This was fixed in Dubbo 2.7.13, 3.0.2
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.dubbo » dubbo | < 2.7.13>= 3.0.0, < 3.0.2 | 2.7.13, 3.0.2 |
Blast radius
70% of the dependent artifacts (177) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1,654 |
| 2 hops | 760 |
| 3 hops | 357 |
| 4 hops | 306 |
| 5 hops | 160 |
| 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.fizzgate » fizz-spring-boot-starter14 usages
- com.yomahub » tlog-all-spring-boot-starter13 usages
- org.test4j » test4j-junit512 usages
- com.wuyushuo » spring-fusion12 usages
- com.llmrix » orion-hermes9 usages
- org.apache.dubbo » dubbo-spring-boot-autoconfigure9 usages
- com.wuyushuo » spring-visual9 usages
- com.llmrix » orion-fusion8 usages
- org.test4j » test4j-core6 usages
- io.github.shuigedeng » taotao-boot-starter-logger5 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-36162 | nvd.nist.gov |
| Package | apache/dubbo | github.com |
| Web | thread.html/rfa351115a459e214b99ffcc52c35f33359f3370c547d9c6ba1a60037@<dev.dubbo.apache.or ... | lists.apache.org |
