CVE-2024-57521 Details
Description
SQL Injection vulnerability in RuoYi v.4.7.9 and before allows a remote attacker to execute arbitrary code via the createTable function in SqlUtil.java.
A SQL injection vulnerability has been identified in RuoYi Framework versions through 4.7.9. This vulnerability allows authenticated administrators to execute arbitrary SQL commands via the 'createTable' function in 'SqlUtil.java'. The issue arises from insufficient input validation, which can be exploited by using '%0b' to bypass regular expression filters and inject SQL payloads.
Update to RuoYi Framework version 4.8.0 or later, and implement proper input validation to filter out the '%0b' character and adjust the SQL keyword filter to correctly block injection attempts.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 23, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gitee.com/y_project/RuoYi/commit/ddd858ca732618a472b10eaab2f8e4b45812ffc5 | [email protected] | PatchPermissions Required |
| https://gitee.com/y_project/RuoYi/issues/IBC976 | [email protected] | Issue Tracking |
| https://github.com/mrlihd/CVE-2024-57521-SQL-Injection-PoC/blob/main/README.md | [email protected] | ExploitThird Party Advisory |
| https://github.com/mrlihd/Ruoyi-4.7.9-SQL-Injection-PoC | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| ruoyi ruoyi | <= 4.7.9 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 27, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 6, 2026 | Initial Analysis | [email protected] |
| Dec 23, 2025 | CVE Modified | CISA-ADP |
| Dec 23, 2025 | New CVE Received | [email protected] |