CVE-2021-30180: Code Injection in Apache Dubbo

org.apache.dubbo:dubbo Updated 02 Oct 2025

Summary

18/03/2022
Yes i
Critical
9.8

CVE-2021-30180: Code injection in Apache Dubbo. Affects org.apache.dubbo:dubbo versions >= 2.7.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 Your last release was probably never penetration tested 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 support for distributed service development and management. Dubbo allows customers to define rules for routing requests to the appropriate server. These rules are used to find the correct endpoint when making a request. However, prior to version 2.7.9, Dubbo's YAML rule parsing functionality had a vulnerability that could enable calling arbitrary constructors.

Vulnerability Detail

The vulnerability (CVE-2021-30180) in Apache Dubbo allows an attacker to perform code injection by exploiting the Tag routing feature. By manipulating the YAML rules used for routing requests, an attacker can execute arbitrary code by calling constructors. This can lead to remote code execution, privilege escalation, and unauthorized access to sensitive information. The severity of this vulnerability is rated as CRITICAL with a CVSS score of 9.8.

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

There is no known workaround for this vulnerability. It is crucial to update to the fixed version of Apache Dubbo to mitigate the risk of code injection.

Conclusion

The code injection vulnerability (CVE-2021-30180) in Apache Dubbo can have severe consequences, including remote code execution and unauthorized access. It is crucial to update to the fixed version of Apache Dubbo (2.7.10 or later) to mitigate the risk. For further support on vulnerability remediation, contact DevNack.com.

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

Share this vulnerability

FAQ

Apache Dubbo is a Java RPC framework that provides support for distributed service development and management.

Tag routing is a feature in Apache Dubbo that allows customers to define rules for routing requests to the appropriate server based on tags.

Code injection is a security vulnerability that allows an attacker to insert and execute malicious code in a target application.

This vulnerability can lead to remote code execution, privilege escalation, and unauthorized access to sensitive information.

To fix this vulnerability, update your Apache Dubbo dependency to version 2.7.10 or later.

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