CVE-2026-7045
Dynamic-Datasource has an Injection vulnerability
Description
A vulnerability was determined in baomidou dynamic-datasource 2.5.0. Affected by this vulnerability is the function DsSpelExpressionProcessor#doDetermineDatasource of the file dynamic-datasource-spring/src/main/java/com/baomidou/dynamic/datasource/processor/DsSpelExpressionProcessor.java of the component StandardEvaluationContext/SpelExpressionParser. This manipulation causes injection. The attack may be initiated remotely. Patch name: 273fcedaee984c08197c0890f14190b86ab7e0b8. It is recommended to apply a patch to fix this issue.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.baomidou » dynamic-datasource-spring | <= 4.5.0 | - |
Blast radius
80% of the dependent artifacts (256) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 28 |
| 2 hops | 44 |
| 3 hops | 1,232 |
| 4 hops | 901 |
| 5 hops | 590 |
| 6 hops | 311 |
Most used dependents
- com.baomidou » dynamic-datasource-spring-boot-starter225 usages
- com.baomidou » dynamic-datasource-spring-boot3-starter90 usages
- io.github.eaopen » eap-spring-boot-starter-test18 usages
- io.github.eaopen » eap-spring-boot-starter-mybatis17 usages
- site.addzero » yudao-spring-boot-starter-mybatis16 usages
- site.addzero » yudao-spring-boot-starter-biz-tenant15 usages
- site.addzero » yudao-spring-boot-starter-biz-data-permission14 usages
- com.baomidou » dynamic-datasource-spring-boot4-starter13 usages
- io.github.wu9007 » buck-core-orm-plus12 usages
- io.github.eaopen » eap-spring-boot-starter-biz-tenant10 usages
- top.binfast » common-mybatis9 usages
- io.github.eaopen » eap-module-system-biz9 usages
- com.baomidou » dynamic-datasource-spring-boot-common8 usages
- io.github.eaopen » eap-system-extj-provider8 usages
- io.github.jinzheyi » shengyu-spring-boot-starter-test8 usages
Computed from the dependency graph of build 20261125.2201 (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-2026-7045 | nvd.nist.gov |
| Package | baomidou/dynamic-datasource | github.com |
| Web | baomidou/dynamic-datasource issue #766 | github.com |
| Web | baomidou/dynamic-datasource pull request #767 | github.com |
| Web | baomidou/dynamic-datasource commit 273fced | github.com |
| Web | submit/798600 | vuldb.com |
| Web | vuln/359624 | vuldb.com |
| Web | vuln/359624/cti | vuldb.com |
