CriticalGHSA-5mc7-m686-p6jgCVE-2021-30179

Deserialization of Untrusted Data in Apache Dubbo

Published 18 Mar 2022 · Updated 8 Nov 2023

Is your project on an affected org.apache.dubbo:dubbo?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
>=2.5.0 <2.7.10
Fixed in
2.7.10
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.dubbo:dubbo -DdepVersion=2.7.10 -DforceVersion=true
Affected
>=2.5.0 <2.6.9
Fixed in
2.6.9
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=com.alibaba:dubbo -DdepVersion=2.6.9 -DforceVersion=true

Details

Apache Dubbo prior to 2.6.9 and 2.7.10 by default supports generic calls to arbitrary methods exposed by provider interfaces. These invocations are handled by the GenericFilter which will find the service and method specified in the first arguments of the invocation and use the Java Reflection API to make the final call. The signature for the $invoke or $invokeAsync methods is Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/Object; where the first argument is the name of the method to invoke, the second one is an array with the parameter types for the method being invoked and the third one is an array with the actual call arguments. In addition, the caller also needs to set an RPC attachment specifying that the call is a generic call and how to decode the arguments. The possible values are: - true - raw.return - nativejava - bean - protobuf-json An attacker can control this RPC attachment and set it to nativejava to force the java deserialization of the byte array located in the third argument.

Is GHSA-5mc7-m686-p6jg in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.apache.dubbo:dubbo, and gives you the command that fixes it.

More advisories for org.apache.dubbo:dubbo

  • CriticalCVE-2023-29234Bypass serialize checks in Apache Dubbo · 15 Dec 2023
  • CriticalCVE-2023-46279Apache Dubbo: Bypass deny serialize list check in Apache Dubbo · 15 Dec 2023
  • CriticalCVE-2023-23638Apache Dubbo vulnerable to Deserialization of Untrusted Data · 8 Mar 2023
  • CriticalCVE-2022-39198Hessian Lite for Apache Dubbo deserialization vulnerability · 19 Oct 2022
  • MediumCVE-2022-24969Server-side request forgery in Apache Dubbo · 10 Jun 2022
  • CriticalCVE-2021-30180Code injection in Apache Dubbo · 18 Mar 2022
All 16 advisories for org.apache.dubbo:dubbo

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.