Home / baomidou / dynamic-datasource / CVE-2026-7045
CVE-2026-7045: is it exploited, and which versions of baomidou dynamic-datasource are affected and fixed?
CVE-2026-7045 is an injection vulnerability in baomidou dynamic-datasource. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:08 UTC). Affected: com.baomidou:dynamic-datasource-spring through 4.5.0 (GitHub advisory GHSA-6rmm-pg23-5f8q). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (5.3, CVSS 4.0, from VulDB).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:08 UTC, CVE record November 19, 2026, 07:08 UTC and NVD November 19, 2026, 07:11 UTC.
What is CVE-2026-7045?
baomidou dynamic-datasource StandardEvaluationContext/SpelExpressionParser DsSpelExpressionProcessor.java DsSpelExpressionProcessor#doDetermineDatasource injection
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.
From the CVE record by VulDB, last updated April 27, 2026, 20:11 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| baomidou | dynamic-datasource | 2.5.0 |
As the CVE record by VulDB states it, last updated April 27, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | com.baomidou:dynamic-datasource-spring | <= 4.5.0 | none listed | GHSA-6rmm-pg23-5f8q |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 5, 2026. Summary: Dynamic-Datasource has an Injection vulnerability.
How severe is CVE-2026-7045?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.3 | CVSS 4.0 | 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:X | VulDB |
| Medium 6.3 | CVSS 3.1 | 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 | VulDB |
| Medium 6.3 | CVSS 3.0 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:X/RL:O/RC:C | VulDB |
| Medium 6.5 | CVSS 2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:P/E:ND/RL:OF/RC:C | VulDB |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-7045 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, April 27, 2026)
- EPSS
- 0.25% probability of exploitation activity in the next 30 days, percentile 16.9 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
- CWE-707 Improper Neutralization
Where are the vendor advisories and references?
- VDB-359624 | baomidou dynamic-datasource StandardEvaluationContext/SpelExpressionParser DsSpelExpressionProcessor.java DsSpelExpressionProcessor#doDetermineData 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
Who found and reported it?
- Winegee (VulDB User) (reporter)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- April 25, 2026
- Published
- April 26, 2026, 13:45 UTC
- CVE record updated
- April 27, 2026, 20:11 UTC by VulDB
- NVD
- Deferred, last modified October 26, 2026, 22:10 UTC
- Last checked
- CVE list November 19, 2026, 07:08 UTC; NVD November 19, 2026, 07:11 UTC; KEV December 3, 2026, 11:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2026-7045
Is CVE-2026-7045 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:08 UTC. FIRST's EPSS gives it a 0.25% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of baomidou dynamic-datasource are affected by CVE-2026-7045?
com.baomidou:dynamic-datasource-spring through 4.5.0, per the GitHub advisory GHSA-6rmm-pg23-5f8q. The tables above give every range the sources list.
Which version fixes CVE-2026-7045?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2026-7045?
Medium (5.3, CVSS 4.0, from VulDB). The severity table above shows each score with its source.
Where is the official record of CVE-2026-7045?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.