Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2021-30181 EUVD-2022-1521GHSA-qmfc-6www-fjqw

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

Published May 29, 2021 · Updated Aug 3, 2024 · 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.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Dubbo Apache Dubbo 2.7.x – < 2.7.9, Apache Dubbo 2.6.x – < 2.6.9 2.7.9

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven com.alibaba:dubbo >= 2.5.0, < 2.6.9 2.6.9 GHSA-qmfc-6www-fjqw
Maven org.apache.dubbo:dubbo >= 2.5.0, < 2.7.10 2.7.10 GHSA-qmfc-6www-fjqw

References