Junglewise Threat Intelligence

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

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

Executive brief

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.

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

Related threats