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

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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.