CVE-2026-7045: Com.baomidou:dynamic datasource spring: Dynamic-Datasource has an Injection vulnerability
Affects com.baomidou:dynamic-datasource-springSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium.
Data as of 27 Oct 2026, 00:07 UTC
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:XExploitation evidence
Disclosed: evidence found.
CVE published 26 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Mavencom.baomidou:dynamic-datasource-spring | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- nvd.nist.gov/vuln/detail/CVE-2026-7045 (opens in a new tab)
- github.com/baomidou/dynamic-datasource/issues/766 (opens in a new tab)
- github.com/baomidou/dynamic-datasource/pull/767 (opens in a new tab)
- github.com/baomidou/dynamic-datasource/commit/273fcedaee984c08197c0890f14190b86ab7e0b8 (opens in a new tab)
- github.com/baomidou/dynamic-datasource (opens in a new tab)
- vuldb.com/submit/798600 (opens in a new tab)
- vuldb.com/vuln/359624 (opens in a new tab)
- vuldb.com/vuln/359624/cti (opens in a new tab)