CVE-2021-25641
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedEach 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceIn Apache Dubbo servers before 2.7.8 or 2.6.9, an attacker can tamper with serialization byte preamble flags to force the provider to use a weak deserializer (Kryo or FST) instead of the server-specified protocol. This allows unauthenticated remote attackers to exploit known deserialization vulnerabilities in these weak serializers for RCE.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 2.5.0, < 2.6.9>= 2.7.0, < 2.7.8CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify Apache Dubbo versionExamine the dubbo JAR files in your application deployment or check the version in your dependency management file (pom.xml, build.gradle, or the MANIFEST.MF inside dubbo JARs)Affected if Version is 2.5.0 through 2.6.8, or 2.7.0 through 2.7.7
-
Detect Kryo deserializer presenceSearch application classpath for kryo JAR (typically kryo-*.jar) or examine build dependencies for com.esotericsoftware:kryoAffected if Kryo library is present in the runtime classpath
-
Detect FST deserializer presenceSearch application classpath for fst JAR (typically fst-*.jar) or examine build dependencies for org.nustaq:fstAffected if FST library is present in the runtime classpath
-
Check serialization configurationReview Dubbo protocol and serialization configuration files or code for any explicit use of serialization filters, Hessian, or Kryo/FST settingsAffected if Serialization is configured to allow flexible serializer selection or explicitly uses Kryo/FST
Affected if running Dubbo version 2.5.0-2.6.8 or 2.7.0-2.7.7 AND having either Kryo or FST in the application classpath with configurable serialization.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped2.6.92.7.8
Upgrade Apache Dubbo to version 2.7.8 or 2.6.9 or later. If upgrading is not immediately possible, ensure Kryo, FST, and other weak deserializers are not in the application classpath.
Upgrade to Dubbo 2.7.8+ (if using 2.7.x) or 2.6.9+ (if using 2.6.x); recommend latest stable in respective branch for additional security fixes
- Identify the current Dubbo version in your project by checking pom.xml or build.gradle for the dubbo dependency version
- For Dubbo 2.7.x users: Upgrade to version 2.7.8 or later (recommended: latest 2.7.x stable release)
- For Dubbo 2.6.x users: Upgrade to version 2.6.9 or later (recommended: latest 2.6.x stable release)
- Update the version in your dependency management file (pom.xml: <dubbo.version>...</dubbo.version> or build.gradle: implementation 'org.apache.dubbo:dubbo:x.x.x')
- Run mvn clean install or gradle build to verify the upgrade does not break compilation
- Test the application thoroughly, specifically RPC communication between Dubbo clients and providers
- Alternatively, if upgrading is not immediately possible, ensure only strong serialization methods (like Hessian) are enabled and weak serializers (Kryo, FST) are excluded from the classpath by reviewing dependencies
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation4.0 h
- Testing8.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,896.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2021-25641 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2021-25641 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data