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

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 21.6%, higher than 97% of CVEs (2026-12-01)
- Published: 2021-05-29T07:30:12.000Z
- Modified: 2026-06-17T03:42:15.763Z
- Also known as: GHSA-v2rg-8cwr-75g8
- Weaknesses: CWE-502
- Assigned by: apache

## Description

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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Dubbo: from Apache Dubbo 2.7.x before 2.7.8; from Apache Dubbo 2.6.x before 2.6.9
- org.apache.dubbo:dubbo (Maven): from 2.5.0 before 2.7.8
- com.alibaba:dubbo (Maven): from 2.5.0 before 2.6.9
- apache dubbo: from 2.5.0 before 2.6.9; from 2.7.0 before 2.7.8

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://lists.apache.org/thread.html/r99ef7fa35585d3a68762de07e8d2b2bc48b8fa669a03e8d84b9673f3%40%3Cdev.dubbo.apache.org%3E> (mailing-list, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25641> (advisory)

## Sources

- CVE List: [CVE-2021-25641](https://www.cve.org/CVERecord?id=CVE-2021-25641), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-v2rg-8cwr-75g8](https://github.com/advisories/GHSA-v2rg-8cwr-75g8), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-25641](https://nvd.nist.gov/vuln/detail/CVE-2021-25641), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-25641 · Whole record: https://cve.day/CVE-2021-25641.json · Rebuilt by cve.day 2026-11-25T22:58:01.603Z
