CVE-2020-1947: Apache ShardingSphere - Deserialization of Untrusted Data

Summary

10/02/2022
Yes i
High
9.8

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.shardingsphere:shardingsphere.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback