CVE-2021-25641Apache Dubbo
Critical 9.8 No auth neededHigh EPSS
Follow: this CVE · Apache · Apache Dubbo We alert you by email or Slack (account required).
- Priority
- 76
- CVSS 3.1
- 9.8
- EPSS
- 21.6% probability of exploitation in 30 days · percentile 98
- Auth required
- No
- Published
- Jun 1, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
Each Apache Dubbo server will set a serialization id to tell the clients which serialization protocol it is working on. But for Dubbo versions before 2.7.8 or 2.6.9, an attacker can choose which serialization id the Provider will use by tampering with the byte preamble flags, aka, not following the server's instruction. This means that if a weak deserializer such as the Kryo and FST are somehow in code scope (e.g. if Kryo is somehow a part of a dependency), a remote unauthenticated attacker can tell the Provider to use the weak deserializer, and then proceed to exploit it.
What to do
- Apply the vendor's security update for Dubbo.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | com.alibaba:dubbo |
≥ 2.5.0 < 2.6.9 |
2.6.9 |
— |
| Maven | org.apache.dubbo:dubbo |
≥ 2.5.0 < 2.7.8 |
2.7.8 |
— |
Per OSV / GitHub Advisories (GHSA-v2rg-8cwr-75g8). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| apache | dubbo | ≥ 2.5.0 < 2.6.9 |
| apache | dubbo | ≥ 2.7.0 < 2.7.8 |
Official sources
References
Links published by the sources. Open them with care.
- lists.apache.org Mailing List Vendor Advisory