CVE-2024-57521: SQL Injection vulnerability in RuoYi v.4.7.9 and before allows a remote attacker to execute arbitrary code via
CVE-2024-57521 is a critical-severity flaw (CVSS 10.0) affecting ruoyi. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 10.0 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.7% (top 48%) |
| CISA exploited list | No |
| Weakness | CWE-89 |
| Published | 2025-12-23 |
| Last modified | 2026-10-27 |
Last updated 2026-10-27 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: mrlihd/CVE-2024-57521-SQL-Injection-PoC (0 stars)
- GitHub PoC: xs2024770/CVE-2024-57521-RuoYi-SQLi (0 stars)
- Write-up: gitee.com/y_project/RuoYi/issues/IBC976
- Write-up: github.com/mrlihd/CVE-2024-57521-SQL-Injection-PoC/blob/main/README.md
- Write-up: github.com/mrlihd/Ruoyi-4.7.9-SQL-Injection-PoC
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-57521?
ruoyi: upgrade to newer than 4.7.9. Exact commands for each OS are on this page.
Is CVE-2024-57521 being exploited?
CVE-2024-57521 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-57521 affect?
CVE-2024-57521 affects ruoyi. Severity is critical (CVSS 10.0). 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.
How urgent is CVE-2024-57521?
Priority 61/100. Critical severity; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2025-46175 HIGH 7.5 DOWNGRADE Ruoyi v4.8.0 is vulnerable to Incorrect Access Control