# CVE-2021-36162: Unprotected yaml deserialization cause RCE

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.26%, higher than 83% of CVEs (2026-12-01)
- Published: 2021-09-07T09:25:10.000Z
- Modified: 2026-06-17T03:58:26.593Z
- Also known as: GHSA-r577-4hq7-73qh
- Weaknesses: CWE-77
- Assigned by: apache

## 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

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Dubbo: from Apache Dubbo 2.7.x up to 2.7.12; from Apache Dubbo 3.0.x up to 3.0.1
- org.apache.dubbo:dubbo (Maven): before 2.7.13; from 3.0.0 before 3.0.2
- apache dubbo: from 2.7.0 up to 2.7.12; from 3.0.0 up to 3.0.1

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://lists.apache.org/thread.html/rfa351115a459e214b99ffcc52c35f33359f3370c547d9c6ba1a60037%40%3Cdev.dubbo.apache.org%3E> (mailing-list, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-36162> (advisory)
- <https://github.com/apache/dubbo> (package)

## Sources

- CVE List: [CVE-2021-36162](https://www.cve.org/CVERecord?id=CVE-2021-36162), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-r577-4hq7-73qh](https://github.com/advisories/GHSA-r577-4hq7-73qh), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-36162](https://nvd.nist.gov/vuln/detail/CVE-2021-36162), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-36162 · Whole record: https://cve.day/CVE-2021-36162.json · Rebuilt by cve.day 2026-11-25T22:58:03.671Z
