SecurityContext

CVE-2020-1947: Apache ShardingSphere - Remote Code Execution

  • Cve: CVE-2020-1947
  • Name: Apache ShardingSphere - Remote Code Execution
  • Description: In Apache ShardingSphere(incubator) 4.0.0-RC3 and 4.0.0, the ShardingSphere'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.
  • Impact: Attackers can execute arbitrary code remotely, potentially leading to full system compromise.
  • Remediation: Update to the latest version of ShardingSphere where this issue is fixed or apply security patches that disable unsafe YAML unmarshalling.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.33918
  • Epss percentile: 0.98433
  • Assignee: [email protected]
  • Published at: 2020-03-11T21:15:11Z
  • Age in days: 2449
  • Modified at: 2026-06-17T03:02:42Z
  • Public exploits total: 4
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-1947
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-502Deserialization of Untrusted Data

Public exploits

Same in every row:

  • Source: poc-in-github
UrlAdded date
https://github.com/StarkChristmas/CVE-2020-19472020-05-29
https://github.com/shadowsock5/ShardingSphere_CVE-2020-19472020-03-13
https://github.com/wsfengfan/CVE-2020-19472020-03-11
https://github.com/jas502n/CVE-2020-19472020-03-11

References

UrlSourceTags
https://lists.apache.org/thread.html/r4a61a24c119bd820da6fb02100d286f8aae55c8f9b94a346b9bb27d8%40%3Cdev.shardingsphere.apache.org%3EnvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
apache:shardingsphere= 4.0.0, = 4.0.0 rc3nonvd/v1/products/apache/shardingsphere

Projects

RepositoryLink kindsIndexedUrl
apache/shardingsphereproductyes/v1/repositories/apache/shardingsphere

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 4
  • Public exploit first date: 2020-03-11
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts