CVE-2021-30181
JSON

9.8critical

Apache Dubbo RCE on customers via Script route poisoning (Nashorn script injection)

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
60.9% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
GHSA-qmfc-6www-fjqw

Description

Apache Dubbo prior to 2.6.9 and 2.7.9 supports Script routing which will enable a customer to route the request to the right server. These rules are used by the customers when making a request in order to find the right endpoint. When parsing these rules, Dubbo customers use ScriptEngine and run the rule provided by the script which by default may enable executing arbitrary code.

Affected

Product or packageVersionsReported by
Apache Software Foundation Apache Dubbofrom Apache Dubbo 2.7.x before 2.7.9, from Apache Dubbo 2.6.x before 2.6.9CVE List
com.alibaba:dubbo (Maven)from 2.5.0 before 2.6.9GitHub Advisory Database
org.apache.dubbo:dubbo (Maven)from 2.5.0 before 2.7.10GitHub Advisory Database
apache dubbofrom 2.5.0 before 2.6.10, from 2.7.0 before 2.7.10NVD

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

Apache Dubbo prior to 2.6.9 and 2.7.9 supports Script routing which will enable a customer to route the request to the right server. These rules are used by the customers when making a request in order to find the right endpoint. When parsing these rules, Dubbo customers use ScriptEngine and run the rule provided by the script which by default may enable executing arbitrary code.

GitHub Advisory Database

Apache Dubbo prior to 2.6.9 and 2.7.10 supports Script routing which will enable a customer to route the request to the right server. These rules are used by the customers when making a request in order to find the right endpoint. When parsing these rules, Dubbo customers use ScriptEngine and run the rule provided by the script which by default may enable executing arbitrary code.

NVD (es)

Apache Dubbo versiones anteriores a 2.6.9 y 2.7.9, soporta el enrutamiento de Scripts que permitirá al cliente enrutar la petición al servidor correcto. Estas reglas son usadas por los clientes cuando realizan una petición para encontrar el endpoint correcto. Al analizar estas reglas, los clientes de Dubbo usan ScriptEngine y ejecutan la regla proporcionada por el script que por defecto, puede permitir una ejecución de código arbitrario

References

Sources

SourceRecordLicence
CVE ListCVE-2021-30181 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-qmfc-6www-fjqw changed 2023-11-08CC-BY-4.0
NVDCVE-2021-30181 changed 2026-06-17Public domain