Vulnerability in Baomidou Dynamic-Datasource
CVE-2026-7045
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
EPSS exploit prediction
EPSS: 0.004 (33.2th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 33rd percentile — 33.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.002 · newest: 0.004 · change: +0.002
Affected products
- Baomidou Dynamic-Datasource — versions 2.5.0
Weakness classification (CWE)
References
- vuldb.com/vuln/359624 (technical-description, vdb-entry)
- vuldb.com/vuln/359624/cti (signature, permissions-required)
- vuldb.com/submit/798600 (third-party-advisory)
- github.com/baomidou/dynamic-datasource/issues/766 (issue-tracking)
- github.com/baomidou/dynamic-datasource/pull/767 (issue-tracking, patch)
- github.com/baomidou/dynamic-datasource/commit/273fcedaee984c08197c0890f14190b86… (patch)
- github.com/baomidou/dynamic-datasource/ (product)
Frequently asked questions
- What is CVE-2026-7045?
- CVE-2026-7045 is a medium-severity vulnerability in Baomidou Dynamic-Datasource, classified under Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection). CVSS score: 6.3/10. Published 2026-04-26.
- How severe is CVE-2026-7045?
- Medium severity. CVSS v3 base score is 6.3 out of 10.