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

Source: https://junglewise.ai/threats/cve-2026-38812-ruoyi-sql-injection-in-code-generation-module  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-15. Updated: 2026-06-15  
License: CC BY 4.0 with a link back

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](https://junglewise.ai/threats/technologies/ruoyi). Vendors: [RuoYi](https://junglewise.ai/threats/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

- [https://github.com/jjcjgo/CVE-2026-38812-RuoYi-SQL-Injection](https://github.com/jjcjgo/CVE-2026-38812-RuoYi-SQL-Injection)

## Related threats

- [RuoYi stored XSS in notice management interface](https://junglewise.ai/threats/cve-2026-37216-ruoyi-stored-xss-in-notice-management-interface)
- [SQL Injection vulnerability in RuoYi v.4.7.9 and before allows a remote attacker to execute arbitrary code via the…](https://junglewise.ai/threats/cve-2024-57521-sql-injection-vulnerability-in-ruoyi-v-4-7-9-and-before-allows-a)
- [RuoYi versions 4.8.1 and earlier is affected by a stored XSS vulnerability in the /system/menu/edit endpoint. While…](https://junglewise.ai/threats/cve-2025-67342-ruoyi-versions-4-8-1-and-earlier-is-affected-by-a-stored-xss)
- [Ruoyi v4.8.0 is vulnerable to Incorrect Access Control. There is a missing checkUserDataScope permission check in the…](https://junglewise.ai/threats/cve-2025-46175-ruoyi-v4-8-0-is-vulnerable-to-incorrect-access-control-there-is-a)
- [An issue was discovered in Ruoyi 4.8.1 allowing attackers to gain escalated privileges due to the owning department…](https://junglewise.ai/threats/cve-2025-56396-an-issue-was-discovered-in-ruoyi-4-8-1-allowing-attackers-to-gain)
