Description
RuoYi v4.8.2 is vulnerable to SQL Injection via the /tool/gen/createTable endpoint. The issue affects the code generation module and may allow an authenticated attacker with administrative privileges to access sensitive database information.
Published: 2026-06-15
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An SQL Injection flaw exists in the /tool/gen/createTable endpoint of RuoYi version 4.8.2. The flaw is present in the code generation module and allows an authenticated attacker with administrative privileges to inject arbitrary SQL statements, which could lead to unauthorized access to sensitive database information. This corresponds to CWE-89.

Affected Systems

RuoYi v4.8.2 is affected. The vulnerability pertains to the code generation module exposed through the /tool/gen/createTable REST endpoint. No other product versions are listed in the current advisory.

Risk and Exploitability

The vulnerability receives a CVSS score of 9.8, indicating critical severity, but the EPSS score is less than 1%, suggesting a low current exploitation probability. The flaw is not yet listed in CISA’s Known Exploited Vulnerabilities catalog. Attackers would require authenticated administrative access to the RuoYi application and she has privilege to invoke the code generation endpoint. Even with the low EPSS, the high CVSS warrants prompt mitigation, especially for environments using the default configuration and exposing the endpoint to potential threat actors.

Generated by OpenCVE AI on June 17, 2026 at 23:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply vendor patch or upgrade to a version where the SQL injection in /tool/gen/createTable has been fixed; if not yet released, coordinate with the vendor for an update.
  • Restrict or disable access to the /tool/gen/createTable endpoint by removing the endpoint from the publicly reachable API surface or applying network segmentation and firewall rules to limit exposure to trusted administrative networks.
  • Implement parameter validation and prepared statements in the code generation module to ensure that SQL commands cannot be manipulated; as a temporary measure, disable or remove the code generation feature if it is not required for operations.

Generated by OpenCVE AI on June 17, 2026 at 23:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 19 Jun 2026 09:45:00 +0000

Type Values Removed Values Added
First Time appeared Ruoyi
Ruoyi ruoyi
Vendors & Products Ruoyi
Ruoyi ruoyi

Thu, 18 Jun 2026 04:45:00 +0000

Type Values Removed Values Added
Title SQL Injection in RuoYi Code Generation Endpoint

Wed, 17 Jun 2026 05:15:00 +0000

Type Values Removed Values Added
Title SQL Injection in RuoYi Code Generation Endpoint

Tue, 16 Jun 2026 14:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-89
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 15 Jun 2026 19:30:00 +0000

Type Values Removed Values Added
Description RuoYi v4.8.2 is vulnerable to SQL Injection via the /tool/gen/createTable endpoint. The issue affects the code generation module and may allow an authenticated attacker with administrative privileges to access sensitive database information.
References

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-06-16T13:51:09.133Z

Reserved: 2026-04-06T00:00:00.000Z

Link: CVE-2026-38812

cve-icon Vulnrichment

Updated: 2026-06-16T13:50:56.313Z

cve-icon NVD

Status : Deferred

Published: 2026-06-15T20:16:27.103

Modified: 2026-06-16T15:50:58.757

Link: CVE-2026-38812

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-19T09:36:02Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')