{"id":"CVE-2021-25641","published":"2021-05-29T07:30:12Z","modified":"2024-08-03T20:11:27Z","title":"Dubbo Zookeeper does not check serialization id","vendor":"Apache","product":"Apache Dubbo","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.21603,"percentile":0.97682,"provenance":"source"},"cwes":[],"references":[{"url":"https://lists.apache.org/thread.html/r99ef7fa35585d3a68762de07e8d2b2bc48b8fa669a03e8d84b9673f3%40%3Cdev.dubbo.apache.org%3E","tags":["x_refsource_MISC"]}],"priority":{"score":24.5,"factors":[{"name":"EPSS percentile","points":19.54},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2021-06-06","earliestUrl":"https://github.com/Dor-Tumarkin/CVE-2021-25641-Proof-of-Concept","repos":[{"name":"Dor-Tumarkin/CVE-2021-25641-Proof-of-Concept","url":"https://github.com/Dor-Tumarkin/CVE-2021-25641-Proof-of-Concept","stars":52,"created":"2021-06-06"},{"name":"l0n3rs/CVE-2021-25641","url":"https://github.com/l0n3rs/CVE-2021-25641","stars":4,"created":"2022-11-10"}]},"first":{"date":"2021-06-06","source":"PoC-in-GitHub","url":"https://github.com/Dor-Tumarkin/CVE-2021-25641-Proof-of-Concept"},"provenance":"source"},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Dubbo","versions":[">= Apache Dubbo 2.7.x, < 2.7.8",">= Apache Dubbo 2.6.x, < 2.6.9"]}],"affected":[{"ecosystem":"Maven","package":"org.apache.dubbo:dubbo","vulnerableRanges":[">=2.5.0, <2.7.8"],"patched":["2.7.8"],"from":["GHSA-v2rg-8cwr-75g8"],"provenance":"source"},{"ecosystem":"Maven","package":"com.alibaba:dubbo","vulnerableRanges":[">=2.5.0, <2.6.9"],"patched":["2.6.9"],"from":["GHSA-v2rg-8cwr-75g8"],"provenance":"source"}],"summary":{"text":"Apache Dubbo, in its handling of the serialization protocol the server advertises to clients, does not verify the serialization id, so a client can choose the protocol the Provider uses. An unauthenticated remote attacker can exploit this by tampering with the byte preamble flags, provided a weak deserializer such as Kryo or FST is present in the code scope, for example through a dependency.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:42:48Z"},"euvd":{"id":"EUVD-2022-1540","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-1948","published":"2020-07-14","fixed":"2.7.7","kev":false,"link":{"from":"CVE-2020-1948","to":"CVE-2021-25641","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.dubbo:dubbo","fromFixed":"2.7.7","toFixed":"2.7.8","daysApart":319}]}},{"cve":"CVE-2021-25641","published":"2021-05-29","fixed":"2.7.8","kev":false},{"cve":"CVE-2021-25640","published":"2021-05-31","fixed":"2.7.10","kev":false},{"cve":"CVE-2021-30179","published":"2021-05-31","fixed":"2.7.10","kev":false},{"cve":"CVE-2021-30180","published":"2021-05-31","fixed":"2.7.10","kev":false}],"package":"Maven:org.apache.dubbo:dubbo"}}