Patchfirst
CVE-2021-30181 EPSS 60.9%

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

Fix:upgrade dubbo to 2.7.10 or later also fixes CVE-2021-30180 Details ↓

Apache Software Foundation · Apache Dubbo

Summary

Apache Dubbo versions prior to 2.6.9 and 2.7.9 contain a flaw in the Script routing feature, where routing rules are evaluated through a ScriptEngine (Nashorn) that by default permits arbitrary code execution. An attacker who can supply or poison a Script routing rule consumed by a Dubbo customer can cause that customer to run attacker-controlled code.

Official description · CVE.org

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.

Breakdown
19.8 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Disclosed on 29 May 2021. No public exploit code or confirmed exploitation is recorded.

Affected versions and fixes

as published in the CVE record

Apache Software Foundation Apache Dubbo

Affected: >= Apache Dubbo 2.7.x, < 2.7.9 · >= Apache Dubbo 2.6.x, < 2.6.9

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

2 packages in 1 ecosystem. Main package: org.apache.dubbo:dubbo.

Mavenorg.apache.dubbo:dubboGHSA-qmfc-6www-fjqw

Upgrade to 2.7.10 or later

Fixes this CVE and 1 other known vulnerability in this package (CVE-2021-30180).

Set the version to 2.7.10 or later in your pom.xml or build.gradle.

The first fix for CVE-2021-30181.

Affected versions

If you runUpgrade to
2.5.0 up to 2.7.102.7.10

“Up to” means the second version is the fix and is not affected.

Other packages that bundle this code (1)

Forks, repackagings and products that include the affected code. Each has its own fixed version.

Check your lockfile against all CVEs

References

1 link, grouped by NVD tag
↑ ↓ chooseEnter openEsc close