# CVE-2021-30181: Apache Dubbo RCE on customers via Script route poisoning (Nashorn script injection)

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/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): 60.9%, higher than 99% of CVEs (2026-12-01)
- Published: 2021-05-29T07:30:12.000Z
- Modified: 2026-06-17T03:49:49.587Z
- Also known as: GHSA-qmfc-6www-fjqw
- Weaknesses: CWE-94
- Assigned by: apache

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

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Dubbo: from Apache Dubbo 2.7.x before 2.7.9; from Apache Dubbo 2.6.x before 2.6.9
- com.alibaba:dubbo (Maven): from 2.5.0 before 2.6.9
- org.apache.dubbo:dubbo (Maven): from 2.5.0 before 2.7.10
- apache dubbo: from 2.5.0 before 2.6.10; from 2.7.0 before 2.7.10

## Every score

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

## References

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

## Sources

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

---

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