Dynamic-Datasource has an Injection vulnerability
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | com.baomidou:dynamic-datasource-spring | <= 4.5.0 | no fix |
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-7045
- https://github.com/baomidou/dynamic-datasource/issues/766
- https://github.com/baomidou/dynamic-datasource/pull/767
- https://github.com/baomidou/dynamic-datasource/commit/273fcedaee984c08197c0890f14190b86ab7e0b8
- https://github.com/baomidou/dynamic-datasource
- https://vuldb.com/submit/798600
- https://vuldb.com/vuln/359624
- https://vuldb.com/vuln/359624/cti
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L- Weakness (CWE)
CWE-74- Platform
- Java / Kotlin (Maven)
- Package
com.baomidou:dynamic-datasource-spring- Disclosed
- 27.04.2026
- Updated
- 11.10.2026 12:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-6rmm-pg23-5f8q - CC BY 4.0
Vulnerability history: com.baomidou:dynamic-datasource-spring
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.