CVE-2021-36162
Unprotected yaml deserialization cause RCE
HIGH 8.8
At a glance
- Source
- NVD
- EPSS
- EPSS 2.26 % · percentile 83 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- apache
- NVD status
- Modified
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
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD · nvd@nist.gov (Primary) |
| CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P | NVD · nvd@nist.gov (Primary) |
Advisories
- GHSA-r577-4hq7-73qh — Remote Code Execution in Apache Dubbo
European references
- ENISA EUVD · EUVD-2021-2105
- GCVE · GCVE-0-2021-36162
Affected configurations (NVD CPE)
cpe:2.3:a:apache:dubbo:*:*:*:*:*:*:*:*≥ 2.7.0 ≤ 2.7.12cpe:2.3:a:apache:dubbo:*:*:*:*:*:*:*:*≥ 3.0.0 ≤ 3.0.1
Affected products
| Product | Versions |
|---|---|
| Apache Software Foundation · Apache Dubbo | affected Apache Dubbo 2.7.x ≤ 2.7.12 ; affected Apache Dubbo 3.0.x ≤ 3.0.1 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |