CVE-2026-38812: SQL Injection

Published Jun 15, 2026
·
Updated

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.

Affected Software

1 affected component
Ruoyi Ruoyi=4.8.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Remove

    Remove RuoYi code generation module from your environment.

    Uninstall or remove the code generation module that exposes /tool/gen/createTable if the functionality is not needed.

  2. Configuration

    Disable the code generation module or disable the /tool/gen/createTable endpoint if code generation functionality is not required.

    RuoYi code generation module (/tool/gen/createTable) enabled = false
  3. Compensating control

    Restrict access to the /tool/gen/createTable endpoint to trusted administrator IPs/networks using firewall rules, an access control list, or a web application firewall to limit exposure until a vendor fix is available.

Event History

Jun 15, 2026
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-38812?

CVE-2026-38812 has a critical severity rating of 9.8 according to CVSS 3.1.

2

How does CVE-2026-38812 affect Ruoyi v4.8.2?

CVE-2026-38812 allows authenticated attackers with administrative privileges to exploit an SQL Injection vulnerability via the /tool/gen/createTable endpoint.

3

What is the potential impact of CVE-2026-38812?

The vulnerability can lead to unauthorized access to sensitive database information.

4

Who is vulnerable to CVE-2026-38812?

Users of Ruoyi v4.8.2 who have administrative privileges are vulnerable to CVE-2026-38812.

5

How can I remediate CVE-2026-38812?

To mitigate CVE-2026-38812, it is recommended to update to a patched version of Ruoyi that addresses the SQL Injection vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203