CVE-2021-25641

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.

Severity
CRITICAL
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
21.603%
chance of exploitation in the next 30 days
higher than 97.7% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2021-05-29Published by the CNA07:30 UTC
  2. 2022-03-18GitHub advisory published (GHSA-v2rg-8cwr-75g8)293 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-v2rg-8cwr-75g8, affected packages:

PackageVulnerable versionsFixed in
Maven com.alibaba:dubbofrom 2.5.0 before 2.6.92.6.9
Maven org.apache.dubbo:dubbofrom 2.5.0 before 2.7.82.7.8

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
apache dubbofrom 2.5.0 before 2.6.9fixed in 2.6.9from 2.7.0 before 2.7.8fixed in 2.7.82.6.92.7.8

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources