CVE-2021-30179: Deserialization of Untrusted Data in Apache Dubbo

org.apache.dubbo:dubbo Updated 02 Oct 2025

Summary

18/03/2022
Yes i
Critical
9.8

CVE-2021-30179: Deserialization of Untrusted Data in Apache Dubbo. Affects org.apache.dubbo:dubbo versions >= 2.5.0, < 2.7.10. Fixed in 2.7.10. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Apache Dubbo is an open-source, high-performance, and lightweight Java RPC framework. It provides a distributed architecture for building scalable and efficient applications. Dubbo supports generic calls to arbitrary methods exposed by provider interfaces. These invocations are handled by the GenericFilter, which uses Java Reflection API to make the final call. The vulnerability in Apache Dubbo allows an attacker to control the Remote Procedure Call (RPC) attachment and force the Java deserialization of untrusted data, leading to potential remote code execution.

Vulnerability Detail

The vulnerability in Apache Dubbo arises from the handling of generic calls to arbitrary methods. By setting the RPC attachment to 'nativejava', an attacker can trigger the deserialization of a byte array located in the third argument of the method invocation. This can be exploited to execute arbitrary code on the target system. The impact of this vulnerability is critical, as it allows remote attackers to compromise the integrity, confidentiality, and availability of the affected system.

How To Fix

Latest published version: 3.3.6 as of 22 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.7.10

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not immediately feasible, a temporary workaround is to disable the GenericFilter in the Dubbo configuration. By removing or commenting out the GenericFilter configuration, the vulnerability can be mitigated. However, this workaround may limit the functionality of generic calls to arbitrary methods.

Conclusion

The vulnerability in Apache Dubbo allows for the deserialization of untrusted data, leading to potential remote code execution. To mitigate this vulnerability, it is recommended to upgrade to the latest version of Apache Dubbo and follow secure coding practices. If immediate upgrade is not possible, disabling the GenericFilter can serve as a temporary workaround. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.dubbo:dubbo →

Share this vulnerability

FAQ

Apache Dubbo is an open-source Java RPC framework that provides a distributed architecture for building scalable and efficient applications.

The vulnerability allows remote attackers to execute arbitrary code on the target system, compromising its integrity, confidentiality, and availability.

To fix this vulnerability, upgrade to Apache Dubbo version 2.7.10 or later and rebuild your applications. Follow secure coding practices and validate all inputs.

Yes, you can temporarily disable the GenericFilter in the Dubbo configuration to mitigate the vulnerability. However, this may limit the functionality of generic calls.

You can find more information about this vulnerability in the Apache Dubbo advisory and the CVE entry (CVE-2021-30179).

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.dubbo:dubbo.

How To Fix

Latest published version: 3.3.6 as of 22 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.7.10

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback