# CVE-2026-105158: RainyGao DocSys SQL injection in database reset

Source: https://junglewise.ai/threats/cve-2026-105158-a-vulnerability-was-detected-in-rainygao-docsys-up-to-2-02-85  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-04. Updated: 2026-10-05  
License: CC BY 4.0 with a link back

CVE-2026-105158 · Severity: high · CVSS 7.3 · Published 2026-10-04

RainyGao DocSys is a document management system that handles file storage, versioning, and access control for organizations. An attacker can inject malicious SQL commands through the database reset feature to read, modify, or delete data in the backend database without proper authentication.

Technologies: [RainyGao DocSys](https://junglewise.ai/threats/technologies/docsys). Vendors: [RainyGao](https://junglewise.ai/threats/vendors/rainygao).

## Quick answers

**Is CVE-2026-105158 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-105158 being exploited in the wild.

**How severe is CVE-2026-105158?** High severity, with a CVSS score of 7.3, published 4 October 2026.

**Which products and versions are affected?** RainyGao DocSys up to 2.02.85.

**Is there a fix for CVE-2026-105158?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-105158 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-105158?** Check whether you run RainyGao DocSys at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is a SQL injection (CWE-89) in the BaseController.createDBForMysql function, which builds SQL statements by concatenating an attacker-controlled database name derived from the url parameter of POST /Manage/resetDatabase.do. The vulnerable code executes these concatenated strings directly via Statement.executeQuery() and Statement.executeUpdate() without parameterization, escaping, or validation. An attacker can bypass the superAdminAccessCheck by supplying a valid authCode leaked from the unauthenticated getDocSysInitConfig.do endpoint, and then inject SQL via backticks, semicolons, comments, and other SQL metacharacters embedded in the JDBC URL.

## Affected products

- RainyGao DocSys up to 2.02.85

## Timeline

- 2026-08-14: disclosed
- 2026-10-04: advisory

## References

- [https://gitee.com/RainyGao/DocSys/](https://gitee.com/RainyGao/DocSys/)
- [https://gitee.com/RainyGao/DocSys/issues/IK8NEU](https://gitee.com/RainyGao/DocSys/issues/IK8NEU)

## Related threats

- [RainyGao DocSys path traversal in document controller](https://junglewise.ai/threats/cve-2026-105157-a-security-vulnerability-has-been-detected-in-rainygao-docsys-up)
- [DocSys unauthenticated arbitrary file download via downloadDocEx](https://junglewise.ai/threats/cve-2026-75413-docsys-unauthenticated-arbitrary-file-download-via-downloaddocex)
- [RainyGao DocSys arbitrary file upload to code execution](https://junglewise.ai/threats/cve-2026-67678-rainygao-docsys-arbitrary-file-upload-to-code-execution)
