CVE-2023-25330 Mybatis
| Affected software | Mybatis |
|---|---|
| Severity | 9.8 Critical CVSS 3.1 |
| Fixed in | 3.5.3.1 |
| Weakness | SQL injection (CWE-89) |
| Published | 5 Apr 2023 |
| Updated | 17 Jun 2026 |
Disputed. The record is tagged disputed: someone contests that the vulnerability exists. We still show our assessment, because the dispute is about whether the vulnerability exists, not whether Waratek can block it.
Description
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. NOTE: the vendor's position is that this can only occur in a misconfigured application; the documentation discusses how to develop applications that avoid SQL injection.
Exploitation status
Proof of concept only
A proof of concept exists, but no reviewed exploit catalogue lists this CVE.
Exploitation status
- CISA KEV not listed
- VulnCheck KEV not listed
- CISA Vulnrichment exploitation: poc CISA recorded that an exploit has been demonstrated. Automatable: yes, technical impact: total.
- Indexed PoC none indexed
- EPSS 1.2% chance in 30 days
Waratek protection
Waratek has a rule that blocks attacks on this vulnerability.
- Protection full SQL injection
- Action available security rule
- Review automated Inferred
- Record disputed disputed
| Decided by | A vulnerability class already blocked by an ARMR security rule |
|---|---|
| Finding | Protected by Waratek's ARMR sql-injection security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-89: SQL Injection. |
How to mitigate CVE-2023-25330
Upgrade Mybatis to 3.5.3.1 or later. Until you can, Waratek RASP blocks exploitation with its SQL injection rule. It runs inside the Java application, with no code changes.
Affected software and releases
Maven packages
Affected and fixed versions, from OSV.dev| Package | Introduced | Fixed | Last affected |
|---|---|---|---|
com.baomidou:mybatis-plus |
0 | 3.5.3.1 |
unbounded |
Products and versions
2 products, 2 version entries| Source | Vendor | Product | Scheme | Affected versions |
|---|---|---|---|---|
| osv | com.baomidou | mybatis-plus | generic | < 3.5.3.1 |
| nvd | mybatis | mybatis | generic | < 3.5.3.1 |
References
Timeline
Timeline
| Published | 2023-04-05 | By the CVE Program. |
|---|---|---|
| NVD record modified | 2026-06-17 | NVD's own last-modified date for this record. |