CVE-2020-1947: Apache ShardingSphere - Deserialization of Untrusted Data
Summary
CVE-2020-1947: Deserialization of Untrusted Data in Apache ShardingSphere. Affects org.apache.shardingsphere:shardingsphere versions >= 4.0.0-RC3, < 4.0.1. Fixed in 4.0.1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Apache ShardingSphere is an open-source ecosystem that provides distributed database middleware solutions. It offers functionalities such as data sharding, distributed transaction, and database governance. The vulnerability affects versions 4.0.0-RC3 and 4.0.0 of the ShardingSphere package. The package utilizes the SnakeYAML library for parsing YAML inputs to load datasource configuration. However, unmarshalling untrusted data using SnakeYAML can lead to remote code execution (RCE) security flaws.
Vulnerability Detail
The vulnerability in Apache ShardingSphere arises due to the improper handling of untrusted data during deserialization. By exploiting this flaw, an attacker can execute arbitrary code on the target system. This can result in unauthorized access, data breaches, and potential system compromise. The vulnerability has a CVSS score of 9.8, indicating its high severity.
How To Fix
Latest published version: 5.5.3 as of 22 Oct 2026
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
4.0.1
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, developers can consider implementing input validation and sanitization mechanisms to mitigate the risk of untrusted data exploitation. By validating and sanitizing user inputs before processing them, the chances of successful attacks can be reduced. However, this workaround is not a substitute for applying the official fix by upgrading to a secure version of the ShardingSphere package.
Conclusion
The vulnerability in Apache ShardingSphere allows for the deserialization of untrusted data, which can lead to remote code execution. It is crucial for developers to upgrade to a secure version of the ShardingSphere package, such as 4.0.1, to mitigate the risk. Input validation and sanitization mechanisms can be implemented as temporary workarounds. For further assistance and support in vulnerability remediation, contact DevNack.com.
See every vulnerability recorded for org.apache.shardingsphere:shardingsphere →
FAQ
Apache ShardingSphere is an open-source ecosystem that provides distributed database middleware solutions. It offers functionalities such as data sharding, distributed transaction, and database governance.
Versions 4.0.0-RC3 and 4.0.0 of the ShardingSphere package are affected by this vulnerability.
The vulnerability allows an attacker to execute arbitrary code on the target system, potentially leading to unauthorized access, data breaches, and system compromise.
The CVSS score of this vulnerability is 9.8, indicating its high severity.
To fix the vulnerability, it is recommended to upgrade to version 4.0.1 of the ShardingSphere package or any subsequent secure release.
References
Related vulnerabilities
Recent vulnerabilities recorded for org.apache.shardingsphere:shardingsphere.