CRITICAL 9.8
CVE-2023-25330
MyBatis-Plus vulnerable to SQL injection via TenantPlugin
Description
MyBatis-Plus below 3.5.3.1 is vulnerable to SQL injection via the tenant ID value. This may allow remote attackers to execute arbitrary SQL commands.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.baomidou » mybatis-plus | < 3.5.3.1 | 3.5.3.1 |
Blast radius
1affected artifacts
110affected versions
2,720dependent artifacts (est.)
25,086dependent versions
70% of the dependent artifacts (1,917) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2,533 |
| 2 hops | 9,240 |
| 3 hops | 6,442 |
| 4 hops | 4,098 |
| 5 hops | 1,661 |
| 6 hops | 1,112 |
Most used dependents
- com.baomidou » mybatis-plus-boot-starter1,473 usages
- com.wuyushuo » spring-dollar49 usages
- cn.com.xianwan.roses » validator-api42 usages
- cn.stylefeng.roses » validator-api40 usages
- org.apache.linkis » linkis-mybatis36 usages
- cn.stylefeng.roses » db-sdk-mp34 usages
- io.gitee.litong » validator-api32 usages
- cn.com.xianwan.roses » db-sdk-mp31 usages
- io.github.swansrp » kernel30 usages
- com.faasadmin » faas-mybatis29 usages
- cn.stylefeng.roses » system-api26 usages
- io.gitee.litong » db-sdk-mp23 usages
- cn.com.xianwan.roses » system-api22 usages
- net.mingsoft » ms-basic21 usages
- com.github.xujiaji.mk » common20 usages
Computed from the dependency graph of build 20261129.0021 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2023-25330 | nvd.nist.gov |
| Package | baomidou/mybatis-plus | github.com |
| Web | reference/about-cve | baomidou.com |
| Web | FCncdn/MybatisPlusTenantPluginSQLInjection-POC Readme.en.md | github.com |
