Critical

Deserialization of Untrusted Data in Apache Dubbo

  • Disclosed: 18.03.2022
  • Updated: 11.10.2026 11:21

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) com.alibaba:dubbo >= 2.5.0, < 2.6.9 2.6.9
Java / Kotlin (Maven) org.apache.dubbo:dubbo >= 2.5.0, < 2.7.10 2.7.10

References

CVSS score 9.8/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-502
Platform
Java / Kotlin (Maven)
Package
com.alibaba:dubbo, org.apache.dubbo:dubbo
Disclosed
18.03.2022
Updated
11.10.2026 11:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-5mc7-m686-p6jg - CC BY 4.0

Vulnerability history: com.alibaba:dubbo

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
5
First → latest
03.2022 06.2022
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 3
  • Medium 2

Disclosures per year

  1. 2022: 5
  2. 2023: 0
  3. 2024: 0
  4. 2025: 0
  5. 2026: 0
  1. Medium · 6.1 CVE-2022-24969 >= 2.5.0, < 2.6.12 2.6.12
  2. Deserialization of Untrusted Data in Apache Dubbo this entry
    Critical · 9.8 CVE-2021-30179 >= 2.5.0, < 2.6.9 2.6.9
  3. Critical · 9.8 CVE-2021-30181 >= 2.5.0, < 2.6.9 2.6.9
  4. Medium · 6.1 CVE-2021-25640 >= 2.5.0, < 2.6.9 2.6.9
  5. Critical · 9.8 CVE-2021-25641 >= 2.5.0, < 2.6.9 2.6.9

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.