CVE-2021-30181
Java vulnerability analysis and mitigation

Overview

Apache Dubbo prior to versions 2.6.9 and 2.7.9 contains a remote code execution vulnerability (CVE-2021-30181) in its Script routing functionality. The vulnerability allows customers to route requests to specific servers using script rules. When parsing these rules, Dubbo customers use ScriptEngine to execute the provided script, which by default may enable arbitrary code execution (NVD, GitHub Security Lab).

Technical details

The vulnerability exists in the Script routing feature where Dubbo customers use JRE ScriptEngineManager to load a ScriptEngine and execute routing rules. When parsing these rules, the ScriptEngine runs the provided script with default settings that enable arbitrary Java code execution. The vulnerability has been assigned a CVSS v3.1 base score of 9.8 CRITICAL (Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) (NVD).

Impact

An attacker with access to the configuration center (such as Zookeeper or Nacos) can poison a script route rule. When this malicious rule is retrieved by consumers, it enables remote code execution on all affected systems. The attack is particularly severe as many installations have authentication disabled by default or don't support authentication at all (GitHub Security Lab).

Mitigation and workarounds

The vulnerability was fixed in Apache Dubbo versions 2.6.9 and 2.7.9. Users should upgrade to these or later versions to mitigate the risk. Additionally, it's recommended to enable authentication on configuration centers where possible and ensure they are not exposed to untrusted networks (NVD).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-55749HIGH8.7
  • JavaJava
  • org.xwiki.platform:xwiki-platform-tool-jetty-resources
NoYesDec 01, 2025
CVE-2025-13806MEDIUM6.9
  • JavaJava
  • org.nutz:nutzboot-parent
NoNoDec 01, 2025
CVE-2025-13805MEDIUM6.3
  • JavaJava
  • org.nutz:nutzboot-parent
NoNoDec 01, 2025
CVE-2025-13804MEDIUM5.3
  • JavaJava
  • org.nutz:nutzboot-parent
NoNoDec 01, 2025
CVE-2025-66372LOW2.8
  • JavaJava
  • org.mustangproject:library
NoYesNov 28, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management