Unprotected yaml deserialization cause RCE
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-77.
Summary
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
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache Dubbo | Apache Dubbo 2.7.x – 2.7.12; Apache Dubbo 3.0.x – 3.0.1 | — | No fix listed | CNA |
| — | org.apache.dubbo:dubbo (Maven) | before 2.7.13 | 2.7.13 | Patch available | GHSA-r577-4hq7-73qh |
| — | org.apache.dubbo:dubbo (Maven) | 3.0.0 to before 3.0.2 | 3.0.2 | Patch available | GHSA-r577-4hq7-73qh |
- Apache Dubbo VendorApache Affected Apache Dubbo 2.7.x – 2.7.12; Apache Dubbo 3.0.x – 3.0.1 Fixed in — No fix listed CNA
- org.apache.dubbo:dubbo (Maven) Vendor— Affected before 2.7.13 Fixed in 2.7.13 Patch available GHSA-r577-4hq7-73qh
- org.apache.dubbo:dubbo (Maven) Vendor— Affected 3.0.0 to before 3.0.2 Fixed in 3.0.2 Patch available GHSA-r577-4hq7-73qh
Remediation
- Fix · GHSA-r577-4hq7-73qh org.apache.dubbo:dubbo (Maven) Fixed in 2.7.13 Advisory →
- Fix · GHSA-r577-4hq7-73qh org.apache.dubbo:dubbo (Maven) Fixed in 3.0.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-36162
- 2026-10-03 Alias added: GHSA-r577-4hq7-73qh
References
More Apache Dubbo vulnerabilities
- TI-2021-12489 Regular expression Denial of Service in MooTools CVSS 3.1CRITICAL 9.8
- TI-2021-10721 Apache Dubbo RCE on customers via Script route poisoning (Nashorn script injection) CVSS 3.1CRITICAL 9.8
- TI-2021-10720 Apache Dubbo RCE on customers via Condition route poisoning (Unsafe YAML unmarshaling) CVSS 3.1CRITICAL 9.8
- TI-2019-13107 Deserialization of untrusted data in Apache Dubbo CVSS 3.1CRITICAL 9.8
- TI-2021-07774 Dubbo Zookeeper does not check serialization id CVSS 3.1CRITICAL 9.8
- TI-2021-19290 Dubbo Hessian cause RCE when parse error CVSS 3.1CRITICAL 9.8
Sources
- CVE-2021-36162 · CVE Program
- CVE-2021-36162 · NVD
- FIRST EPSS
- GHSA-r577-4hq7-73qh · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences