CVE-2026-38812: RuoYi SQL injection in code generation module

CVE-2026-38812 · Severity: info · CVSS 0 · Published 2026-06-15

RuoYi, a popular open-source management system, contains a security flaw in its code generation module. An attacker with administrative access could exploit this vulnerability to run unauthorized database commands. This could lead to the exposure of sensitive business data or the modification of critical system records.

Technologies: RuoYi. Vendors: RuoYi.

Quick answers

Is CVE-2026-38812 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-38812 being exploited in the wild.
How severe is CVE-2026-38812?
Informational severity, with a CVSS score of 0, published 15 June 2026.
Which products and versions are affected?
RuoYi 4.8.2.
Is there a fix for CVE-2026-38812?
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-38812 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2026-38812?
Check whether you run RuoYi 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

A SQL injection vulnerability exists in RuoYi v4.8.2 within the code generation module. The flaw is located in the /tool/gen/createTable endpoint, where user-supplied input is likely concatenated into a SQL query without proper sanitization or parameterization. An authenticated attacker with administrative privileges can exploit this to execute arbitrary SQL commands against the backend database. This can result in unauthorized data retrieval, modification, or deletion. No official patch is mentioned in the advisory, though standard remediation involves using prepared statements or parameterized queries.

Affected products

  • RuoYi RuoYi 4.8.2

Timeline

  • 2026-06-15: disclosed
  • 2026-06-15: advisory

References

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