CVE-2021-37579 Bypass deserialization checks in Apache Dubbo

Critical 9.8 Published Updated

Attackers can bypass serialization checks to trigger unsafe Java deserialization, potentially leading to remote code execution in Apache Dubbo applications.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-37579?

CVE-2021-37579 is a critical unsafe deserialization vulnerability in Apache Dubbo, published on 9 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The Dubbo Provider will check the incoming request and the corresponding serialization type of this request meet the configuration set by the server. But there's an exception that the attacker can use to skip the security check (when enabled) and reaching a deserialization operation with native java serialization. Apache Dubbo 2.7.13, 3.0.2 fixed this issue by quickly fail when any unrecognized request was found.

Weakness: CWE-502

Which versions are affected by CVE-2021-37579?

4 open source packages ship an affected version, including org.apache.dubbo:dubbo. It affects 1 product.

PackageAffectedFixed in
org.apache.dubbo:dubbo MavenAll versions2.7.13
org.apache.dubbo:dubbo MavenAll versions2.7.13
org.apache.dubbo:dubbo MavenFrom 3.0.03.0.2
org.apache.dubbo:dubbo MavenFrom 3.0.03.0.2

Products include Apache Dubbo.

How do I fix CVE-2021-37579?

Upgrade org.apache.dubbo:dubbo to a fixed version for your release line: 2.7.13 or 3.0.2.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2021-37579 being exploited?

There is no known exploitation of CVE-2021-37579 in the wild and no public exploit code.

Sources

Also known as GHSA-q897-9jxf-jg9r.

Is CVE-2021-37579 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free