CVE-2024-57521

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

Critical · published December 23, 2025

CVSS v3.1
10.0
EPSS
1%
Percentile
52.0
In the wild
Unconfirmed
What it is

🚨 A remote attacker can trigger arbitrary code execution through a single function call! This SQL Injection vulnerability in RuoYi up to v4.7.9 is as critical as it gets! 🔥 Think of it like a restaurant where a diner can manipulate the menu to create their own meals without the chef's approval — the kitchen has no idea what's being served! This means an attacker could potentially seize control of the server, altering data, corrupting databases, or even executing malicious scripts. The consequences could be absolutely devastating, with sensitive data exposed and service integrity compromised.

Put simply

Think of it like a restaurant where a diner can manipulate the menu to create their own meals without the chef's approval — the kitchen has no idea what's being served! This SQL Injection occurs in the createTable function within SqlUtil.java, allowing attackers to inject malicious SQL code that the application will execute unchecked. Essentially, the application trusts unsanitized input to run critical database commands.

What to do

This means an attacker could potentially seize control of the server, altering data, corrupting databases, or even executing malicious scripts. The consequences could be absolutely devastating, with sensitive data exposed and service integrity compromised. To secure your systems, immediately upgrade RuoYi to version 4.7.10 or later. Additionally, ensure that all user input is validated and sanitized to prevent such SQL injections. You've got this! With these steps, you'll lock down your defenses and elevate your security hero status! 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00683 · 52.0th percentile
Published
2025-12-23T00:00Z
EPSS history
Timeline
  • 23 DEC 00:00Z
    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
    cvelistv5