CVE-2026-7045
Remote Injection Vulnerability in baomidou Dynamic-Datasource
Publication date: 2026-04-26
Last updated on: 2026-04-26
Assigner: VulDB
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| baomidou | dynamic-datasource | to 2.5.0 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-74 | The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. |
| CWE-707 | The product does not ensure or incorrectly ensures that structured messages or data are well-formed and that certain security properties are met before being read from an upstream component or sent to a downstream component. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in the baomidou dynamic-datasource version 2.5.0, specifically in the function DsSpelExpressionProcessor#doDetermineDatasource. The issue is related to the manipulation of the StandardEvaluationContext and SpelExpressionParser components, which leads to an injection vulnerability. This means that an attacker can remotely exploit this flaw to inject malicious expressions or code.
How can this vulnerability impact me? :
The vulnerability allows remote attackers to perform injection attacks through the affected function. This can lead to unauthorized access or manipulation of data sources, potentially compromising the confidentiality, integrity, and availability of the system. The CVSS scores indicate a moderate to high impact, with possible partial loss of confidentiality, integrity, and availability.
What immediate steps should I take to mitigate this vulnerability?
It is recommended to apply the patch identified by commit 273fcedaee984c08197c0890f14190b86ab7e0b8 to fix this issue.