CVE-2023-25330
CRITICAL 9.8CVSS 3.1MyBatis-Plus vulnerable to SQL injection via TenantPlugin
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.
- Published
- 5 Apr 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- GHSA-32qq-m9fh-f74w
- Sources
- NVDJSONOSV GHSA-32qq-m9fh-f74wJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mybatis | mybatiscpe:2.3:a:mybatis:mybatis:*:*:*:*:*:*:*:* |
< 3.5.3.1 | 3.5.3.1 |
| OSV | Maven | com.baomidou:mybatis-plus | < 3.5.3.1 | 3.5.3.1 |
References
- https://baomidou.com/reference/about-cve/ · WEB
- https://github.com/FCncdn/MybatisPlusTenantPluginSQLInjection-POC/blob/master/Readme.en.md · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-25330 · ADVISORY
- https://github.com/baomidou/mybatis-plus · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 5 Apr 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 5 Apr 2023)