CVE-2026-7045 Details
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.
A SpEL injection vulnerability has been identified in baomidou dynamic-datasource version 2.5.0. The issue arises in the 'DsSpelExpressionProcessor' component, specifically within the 'doDetermineDatasource' method. This vulnerability allows for the injection of malicious expressions that can be evaluated at runtime, potentially leading to remote code execution. The problem is exacerbated when applications bind untrusted input to parameters expected to contain SpEL expressions, such as '@DS("#tenant")'.
Users are advised to update to the patched version of dynamic-datasource, which is available on the project's GitHub repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 26, 2026CISA-ADP
Assessed Apr 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/baomidou/dynamic-datasource/ | [email protected] | ProductSource CodeVendor |
| https://github.com/baomidou/dynamic-datasource/commit/273fcedaee984c08197c0890f14190b86ab7e0b8 | [email protected] | Source CodeVendor |
| https://github.com/baomidou/dynamic-datasource/issues/766 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/baomidou/dynamic-datasource/pull/767 | [email protected] | Issue TrackingVendor |
| https://vuldb.com/submit/798600 | [email protected] | Technical Description |
| https://vuldb.com/vuln/359624 | [email protected] | AdvisoryRemedy |
| https://vuldb.com/vuln/359624/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-707 | Improper Neutralization | [email protected] |
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| baomidou dynamic-datasource | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 26, 2026 | New CVE Received | [email protected] |
Volerion