WaratekVRT Sign in

CVE-2023-25330 Mybatis

Affected softwareMybatis
Severity9.8 Critical CVSS 3.1
Fixed in3.5.3.1
WeaknessSQL injection (CWE-89)
Published5 Apr 2023
Updated17 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.

  • 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

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

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.

Waratek RASP Runtime protection for Java applications

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
com.baomidou:mybatis-plus 0 3.5.3.1 unbounded

Products and versions

2 products, 2 version entries
SourceVendorProductSchemeAffected versions
osv com.baomidou mybatis-plus generic < 3.5.3.1
nvd mybatis mybatis generic < 3.5.3.1

References

URLTags
https://baomidou.com/reference/about-cve WEB
https://github.com/FCncdn/MybatisPlusTenantPluginSQLInjection-POC/blob/master/Readme.en.md WEB
https://github.com/baomidou/mybatis-plus PACKAGE
https://baomidou.com/reference/about-cve/

Timeline

Published2023-04-05By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.