Vulnerability · Published Apr 26, 2026 · Assigned by VulDB
CVE-2026-7045baomidou dynamic-datasource StandardEvaluationContext/SpelExpressionParser DsSpelExpressionProcessor.java DsSpelExpressionProcessor#doDetermineDatasource injection
Medium 6.3
In plain English
A medium-severity injection in dynamic-datasource from baomidou. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 15% of all known vulnerabilities).
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | com.baomidou:dynamic-datasource-spring | no fix listed | GHSA-6rmm-pg23-5f8q |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| baomidou | dynamic-datasource | 2.5.0 |
Weakness: CWE-74, CWE-707 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:X/RL:O/RC:C
References
- VDB-359624 | baomidou dynamic-datasource StandardEvaluationContext/SpelExpressionParser DsSpelExpressionProcessor.java DsSpelExpressionProcessor#doDetermineDatasource injection vdb-entry, technical-description
- VDB-359624 | CTI Indicators (IOB, IOC, TTP, IOA) signature, permissions-required
- Submit #798600 | baomidou dynamic-datasource 2.5.0+ SpEL Injection third-party-advisory
- https://github.com/baomidou/dynamic-datasource/issues/766 issue-tracking
- https://github.com/baomidou/dynamic-datasource/pull/767 issue-tracking, patch
- https://github.com/baomidou/dynamic-datasource/commit/273fcedaee984c08197c0890f14190b86ab7e0b8 patch
- https://github.com/baomidou/dynamic-datasource/ product