# CVE-2021-25641: Dubbo Zookeeper does not check serialization id

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (NVD); no exploitation reported by the 5 checked sources; EPSS 22% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-05-29 · Modified: 2024-08-03
- Aliases: GHSA-v2rg-8cwr-75g8
- Record: https://cvemate.com/vulnerability/CVE-2021-25641 · JSON: https://cvemate.com/vulnerability/CVE-2021-25641/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 21.603%, percentile 97.691%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache dubbo: ≥ Apache Dubbo 2.7.x, \< 2.7.8 \| ≥ Apache Dubbo 2.6.x, \< 2.6.9
- apache dubbo: ≥ 2.5.0, \< 2.6.9 \| ≥ 2.7.0, \< 2.7.8
- com.alibaba dubbo (Maven): ≥ 2.5.0, \< 2.6.9
- org.apache.dubbo dubbo (Maven): ≥ 2.5.0, \< 2.7.8

## References

- <https://lists.apache.org/thread.html/r99ef7fa35585d3a68762de07e8d2b2bc48b8fa669a03e8d84b9673f3%40%3Cdev.dubbo.apache.org%3E>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25641>

---

Data as of 2026-12-05T03:52:11.348Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
