Skip to content

CVE-2021-36162 Unprotected yaml deserialization cause RCE

HighCVSS 8.8 EPSS 2.3%
Published
Updated
Exploit status
No public exploit known

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

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
Apache Dubbo >= Apache Dubbo 2.7.x, <= 2.7.12; >= Apache Dubbo 3.0.x, <= 3.0.1 after 2.7.12, 3.0.1 Fixed
apache dubbo >= 2.7.0, <= 2.7.12; >= 3.0.0, <= 3.0.1 after 2.7.12, 3.0.1 Fixed
org.apache.dubbo/dubbo(Maven) < 2.7.13; = 2.7.0; = 2.7.1; = 2.7.2 +15 more 2.7.13, 3.0.2 Fixed

Affected products

ProductAffected versionsFixed in
org.apache.dubbo/dubbo(Maven) < 2.7.13 2.7.13
org.apache.dubbo/dubbo(Maven) >= 3.0.0, < 3.0.2 3.0.2
org.apache.dubbo/dubbo(Maven) = 2.7.0 No fix listed
org.apache.dubbo/dubbo(Maven) = 2.7.1 No fix listed
org.apache.dubbo/dubbo(Maven) = 2.7.10 No fix listed
org.apache.dubbo/dubbo(Maven) = 2.7.11 No fix listed
org.apache.dubbo/dubbo(Maven) = 2.7.12 No fix listed
org.apache.dubbo/dubbo(Maven) = 2.7.2 No fix listed
org.apache.dubbo/dubbo(Maven) = 2.7.3 No fix listed
org.apache.dubbo/dubbo(Maven) = 2.7.4 No fix listed
org.apache.dubbo/dubbo(Maven) = 2.7.4.1 No fix listed
org.apache.dubbo/dubbo(Maven) = 2.7.5 No fix listed
org.apache.dubbo/dubbo(Maven) = 2.7.6 No fix listed
org.apache.dubbo/dubbo(Maven) = 2.7.7 No fix listed
org.apache.dubbo/dubbo(Maven) = 2.7.8 No fix listed
org.apache.dubbo/dubbo(Maven) = 2.7.9 No fix listed
org.apache.dubbo/dubbo(Maven) = 3.0.0 No fix listed
org.apache.dubbo/dubbo(Maven) = 3.0.0.preview No fix listed
org.apache.dubbo/dubbo(Maven) = 3.0.1 No fix listed
apache dubbo >= 2.7.0, <= 2.7.12 No fix listed
apache dubbo >= 3.0.0, <= 3.0.1 No fix listed
Apache Dubbo >= Apache Dubbo 2.7.x, <= 2.7.12 No fix listed
Apache Dubbo >= Apache Dubbo 3.0.x, <= 3.0.1 No fix listed

References