PT-2021-18653 · Apache · Apache Dubbo
Published
2021-05-31
·
Updated
2022-03-18
·
CVE-2021-30179
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Apache Dubbo versions prior to 2.6.9 and 2.7.9
Description
The issue allows for generic calls to arbitrary methods exposed by provider interfaces. These invocations are handled by the GenericFilter, which uses the Java Reflection API to make the final call. The
invoke or invokeAsync methods have a signature that includes the method name, parameter types, and actual call arguments. An attacker can control the RPC attachment, setting it to nativejava to force Java deserialization of a byte array, potentially leading to exploitation.Recommendations
For Apache Dubbo versions prior to 2.6.9, update to version 2.6.9 or later.
For Apache Dubbo versions prior to 2.7.9, update to version 2.7.9 or later.
As a temporary workaround, consider restricting the RPC attachment values to prevent setting it to
nativejava until a patch is available.Fix
Deserialization of Untrusted Data
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Apache Dubbo