CVE-2024-57521 SQL injection in n/a
Remote attackers can execute arbitrary code via SQL injection in the createTable function of the RuoYi admin framework.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-57521?
CVE-2024-57521 is a critical SQL injection vulnerability in Ruoyi Ruoyi, published on 23 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-89
Which versions are affected by CVE-2024-57521?
It affects 1 product.
Products include Ruoyi Ruoyi.
How do I fix CVE-2024-57521?
No fix has been published for CVE-2024-57521 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2024-57521 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-57521 exists.
Public exploit code: 2 proofs of concept on GitHub.
Other vulnerabilities in Ruoyi Ruoyi
Sources
Also known as GHSA-r6g5-8v9h-7ww8.