8.8high
Unprotected yaml deserialization cause RCE
- Severity
- 8.8high CVSS:3.1 by NVD
- Exploit likelihood
- 2.26% (higher than 83% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-r577-4hq7-73qh
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
| Product or package | Versions | Reported by |
|---|---|---|
| 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 | CVE List |
| org.apache.dubbo:dubbo (Maven) | before 2.7.13, from 3.0.0 before 3.0.2 | GitHub Advisory Database |
| apache dubbo | from 2.7.0 up to 2.7.12, from 3.0.0 up to 3.0.1 | NVD |
All scores
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.5medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Classification
What each source says
CVE List
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
NVD (es)
Apache Dubbo es compatible con varias reglas para soportar la anulación de la configuración o el enrutamiento del tráfico (llamado enrutamiento en Dubbo). Estas reglas son cargadas en el centro de configuración (por ejemplo: Zookeeper, Nacos, ...) y son recuperadas por los clientes cuando hacen una petición con el fin de encontrar el endpoint correcto. Cuando son analizadas estas reglas YAML, los clientes de Dubbo usarán la biblioteca SnakeYAML para cargar las reglas que, por defecto, permitirán llamar a constructores arbitrarios. Un atacante con acceso al centro de configuración podrá envenenar la regla para que cuando sea recuperada por los consumidores, obtenga RCE en todos ellos. Esto fue corregido en Dubbo versiones 2.7.13, 3.0.2
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-36162 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-r577-4hq7-73qh changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-36162 changed 2026-06-17 | Public domain |