# CVE-2023-25330: MyBatis-Plus vulnerable to SQL injection via TenantPlugin

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.21%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-04-05T00:00:00.000Z
- Modified: 2026-06-17T05:41:06.213Z
- Also known as: GHSA-32qq-m9fh-f74w
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- com.baomidou:mybatis-plus (Maven): before 3.5.3.1
- mybatis mybatis: before 3.5.3.1

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/FCncdn/MybatisPlusTenantPluginSQLInjection-POC/blob/master/Readme.en.md> (exploit, third-party-advisory, web)
- <https://baomidou.com/reference/about-cve/>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-25330> (advisory)
- <https://baomidou.com/reference/about-cve> (web)
- <https://github.com/baomidou/mybatis-plus> (package)

## Sources

- CVE List: [CVE-2023-25330](https://www.cve.org/CVERecord?id=CVE-2023-25330), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-32qq-m9fh-f74w](https://github.com/advisories/GHSA-32qq-m9fh-f74w), CC-BY-4.0, modified 2024-06-03
- NVD: [CVE-2023-25330](https://nvd.nist.gov/vuln/detail/CVE-2023-25330), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-25330 · Whole record: https://cve.day/CVE-2023-25330.json · Rebuilt by cve.day 2026-11-25T22:58:23.105Z
