Live threats

All CVEs / Apache

CVE-2021-25641Apache Dubbo

Critical 9.8 No auth neededHigh EPSS

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Dubbo.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
apachedubbo≥ 2.5.0 < 2.6.9
apachedubbo≥ 2.7.0 < 2.7.8

Official sources

References

Links published by the sources. Open them with care.