Deserialization of Untrusted Data in Apache ShardingSphere
Date: 2022-02
Affected: maven/org.apache.shardingsphere:shardingsphere
Attack vector: deserialization
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2020-1947
CWE: CWE-502
CVSS: 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)

In Apache ShardingSphere(incubator) 4.0.0-RC3 and 4.0.0, the ShardingSphere&#39;s web console uses the SnakeYAML library for parsing YAML inputs to load datasource configuration. SnakeYAML allows to unmarshal data to a Java type By using the YAML tag. Unmarshalling untrusted data can lead to security flaws of RCE.


Mitigations:

Architectural layers (MAESTRO):