CVE-2023-25330

A SQL injection vulnerability in Mybatis plus below 3.5.3.1 allows remote attackers to execute arbitrary SQL commands via the tenant ID valuer

published April 5, 2023

CVSS
—
EPSS
1%
Percentile
68.2
In the wild
Unconfirmed
What it is

⚠️ A sneaky SQL injection lurks in Mybatis Plus versions below 3.5.3.1! Remote attackers can execute arbitrary SQL commands just by manipulating the tenant ID value. 🚨 Think of it like a delivery service that follows any address you write on a package without verifying it — if you mislabel the tenant ID, an attacker could send a request that opens the floodgates to your database! With this vulnerability, an attacker could potentially gain the ability to execute any SQL command they desire. This means they could read sensitive data, modify records, or even wipe your database clean — an absolute nightmare for any application!

Put simply

Think of it like a delivery service that follows any address you write on a package without verifying it — if you mislabel the tenant ID, an attacker could send a request that opens the floodgates to your database! This SQL injection flaw allows remote attackers to inject malicious SQL through the tenant ID, exploiting applications that haven't properly configured Mybatis Plus to sanitize inputs. Essentially, if your application is misconfigured, it's vulnerable to SQL commands that can compromise your data integrity.

What to do

With this vulnerability, an attacker could potentially gain the ability to execute any SQL command they desire. This means they could read sensitive data, modify records, or even wipe your database clean — an absolute nightmare for any application! To mitigate this issue, ensure you're using Mybatis Plus version 3.5.3.1 or higher. Additionally, review your application’s configuration to enforce proper input validation and sanitization practices to dodge SQL injection attacks. Regularly audit your SQL queries for vulnerabilities as well! You've got this! With the right patches and vigilance, you can ensure your application stays secure. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01210 · 68.2th percentile
Published
2023-04-05T00:00Z
EPSS history
Timeline
  • 05 APR 00:00Z
    A SQL injection vulnerability in Mybatis plus below 3.5.3.1 allows remote attackers to execute arbitrary SQL commands via the tenant ID valuer
    cvelistv5