CVE-2022-48114

RuoYi up to v4.7.5 was discovered to contain a SQL injection vulnerability via the component /tool/gen/createTable

Critical · published February 2, 2023

CVSS v3.1
9.8
EPSS
1%
Percentile
57.7
In the wild
Unconfirmed
What it is

🔥 A single poorly validated input can unleash chaos! The RuoYi platform up to v4.7.5 has a SQL injection vulnerability in the /tool/gen/createTable component that could be a hacker's dream. ⚡ Think of it like a restaurant where a customer can order anything off the menu without checks — if they say they want a table made of solid gold, the restaurant might just go ahead and build it! In this case, an attacker could use the SQL injection to manipulate the database directly, leading to serious mishaps. An attacker could gain complete control over the database, allowing them to access sensitive data, alter records, or even delete everything with a few simple commands. This could lead to catastrophic data breaches and loss of trust from users — a nightmare scenario for any organization!

Put simply

Think of it like a restaurant where a customer can order anything off the menu without checks — if they say they want a table made of solid gold, the restaurant might just go ahead and build it! In this case, an attacker could use the SQL injection to manipulate the database directly, leading to serious mishaps. This vulnerability allows attackers to execute arbitrary SQL commands via unsanitized input in the /tool/gen/createTable endpoint, potentially compromising the entire database.

What to do

An attacker could gain complete control over the database, allowing them to access sensitive data, alter records, or even delete everything with a few simple commands. This could lead to catastrophic data breaches and loss of trust from users — a nightmare scenario for any organization! Upgrade RuoYi to version 4.7.6 or later immediately to patch this vulnerability. Additionally, review and sanitize all user inputs to prevent similar SQL injection issues in the future. Implement prepared statements where possible for added security. You can tackle this vulnerability head-on! Follow these steps, and your security hero status will be firmly established! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00850 · 57.7th percentile
Published
2023-02-02T00:00Z
EPSS history
Timeline
  • 02 FEB 00:00Z
    RuoYi up to v4.7.5 was discovered to contain a SQL injection vulnerability via the component /tool/gen/createTable
    cvelistv5