GHSA-5mc7-m686-p6jg

Suggest an improvement
Source
https://github.com/advisories/GHSA-5mc7-m686-p6jg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-5mc7-m686-p6jg/GHSA-5mc7-m686-p6jg.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5mc7-m686-p6jg
Aliases
Published
2022-03-18T17:57:32Z
Modified
2023-11-08T04:05:45.605677Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Deserialization of Untrusted Data in Apache Dubbo
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.

Database specific
{
    "nvd_published_at": "2021-06-01T14:15:00Z",
    "github_reviewed_at": "2021-06-02T20:18:30Z",
    "severity": "CRITICAL",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-502"
    ]
}
References

Affected packages

Maven / org.apache.dubbo:dubbo

Package

Name
org.apache.dubbo:dubbo
View open source insights on deps.dev
Purl
pkg:maven/org.apache.dubbo/dubbo

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.5.0
Fixed
2.7.10

Affected versions

2.*

2.7.0
2.7.1
2.7.2
2.7.3
2.7.4
2.7.4.1
2.7.5
2.7.6
2.7.7
2.7.8
2.7.9

Maven / com.alibaba:dubbo

Package

Name
com.alibaba:dubbo
View open source insights on deps.dev
Purl
pkg:maven/com.alibaba/dubbo

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.5.0
Fixed
2.6.9

Affected versions

2.*

2.5.0
2.5.1
2.5.2
2.5.3
2.5.4
2.5.5
2.5.6
2.5.7
2.5.8
2.5.9
2.5.10
2.6.0
2.6.1
2.6.2
2.6.3
2.6.4
2.6.5
2.6.6
2.6.7
2.6.8