# CVE-2021-30179: Apache Dubbo Pre-auth RCE via Java deserialization in the Generic filter

- 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): 4.08%, higher than 90% of CVEs (2026-12-01)
- Published: 2021-05-31T07:25:13.000Z
- Modified: 2026-06-17T03:49:49.350Z
- Also known as: GHSA-5mc7-m686-p6jg
- Weaknesses: CWE-502
- Assigned by: apache

## Description

Apache Dubbo prior to 2.6.9 and 2.7.9 by default supports generic calls to arbitrary methods exposed by provider interfaces. These invocations are handled by the GenericFilter which will find the service and method specified in the first arguments of the invocation and use the Java Reflection API to make the final call. The signature for the $invoke or $invokeAsync methods is Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/Object; where the first argument is the name of the method to invoke, the second one is an array with the parameter types for the method being invoked and the third one is an array with the actual call arguments. In addition, the caller also needs to set an RPC attachment specifying that the call is a generic call and how to decode the arguments. The possible values are: - true - raw.return - nativejava - bean - protobuf-json An attacker can control this RPC attachment and set it to nativejava to force the java deserialization of the byte array located in the third argument.

(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
- org.apache.dubbo:dubbo (Maven): from 2.5.0 before 2.7.10
- com.alibaba:dubbo (Maven): from 2.5.0 before 2.6.9
- apache dubbo: from 2.5.0 up to 2.5.10; from 2.6.0 before 2.6.9; 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/rccbcbdd6593e42ea3a1e8fedd12807cb111375c9c40edb005ef36f67%40%3Cdev.dubbo.apache.org%3E> (mailing-list, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-30179> (advisory)
- <https://lists.apache.org/thread.html/rccbcbdd6593e42ea3a1e8fedd12807cb111375c9c40edb005ef36f67@%3Cdev.dubbo.apache.org%3E> (web)

## Sources

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

---

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