9.8critical
Apache Dubbo Pre-auth RCE via Java deserialization in the Generic filter
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 4.08% (higher than 90% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-5mc7-m686-p6jg
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 | CVE List |
| org.apache.dubbo:dubbo (Maven) | from 2.5.0 before 2.7.10 | GitHub Advisory Database |
| com.alibaba:dubbo (Maven) | from 2.5.0 before 2.6.9 | GitHub Advisory Database |
| 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 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Apache Dubbo prior to 2.6.9 and 2.7.10 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.
NVD (es)
Apache Dubbo versiones anteriores a 2.6.9 y 2.7.9, por defecto admite llamadas genéricas a métodos arbitrarios expuestos por interfaces de proveedor. Estas invocaciones son manejadas por la función GenericFilter que encontrará el servicio y método especificado en los primeros argumentos de la invocación y usará la API de Java Reflection para realizar la llamada final. La firma para los métodos $invoke o $invokeAsync es Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/Object; donde el primer argumento es el nombre del método a invocar, el segundo es una matriz con los tipos de parámetros para el método que es invocado y el tercero es una matriz con los argumentos de llamada reales. Además, la persona que llama también debe ajustar un adjunto RPC que especifique que la llamada es una llamada genérica y cómo decodificar los argumentos. Los valores posibles son: - true - raw.return - nativejava - bean - protobuf-json Un atacante puede controlar este adjunto RPC y ajustarlo en nativejava para forzar la deserialización java de la matriz de bytes ubicada en el tercer argumento
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-30179 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5mc7-m686-p6jg changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-30179 changed 2026-06-17 | Public domain |