CVE-2026-7045: Injection in baomidou dynamic-datasource
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.
AI Analysis
Technical Summary
The vulnerability CVE-2026-7045 affects baomidou dynamic-datasource 2.5.0 in the DsSpelExpressionProcessor#doDetermineDatasource method. This method uses Spring's StandardEvaluationContext and SpelExpressionParser to evaluate expressions for datasource determination. Improper input validation or sanitization leads to injection, classified under CWE-74 (Injection) and CWE-707 (Improper Neutralization). The attack can be initiated remotely without user interaction and requires low privileges. The CVSS 4.0 base score is 5.3, indicating medium severity. A patch commit (273fcedaee984c08197c0890f14190b86ab7e0b8) is referenced but no official vendor advisory or patch release is confirmed.
Potential Impact
Successful exploitation allows an attacker to perform injection attacks remotely, potentially manipulating datasource selection or behavior within the application. This could lead to unauthorized data access or modification depending on the context of use. The vulnerability requires low privileges and no user interaction, increasing its risk. However, the impact is rated medium due to limited scope and complexity.
Mitigation Recommendations
A patch commit identifier is referenced, indicating that a fix exists in the code repository. However, no official vendor advisory or patch release is confirmed. It is recommended to apply the referenced patch (commit 273fcedaee984c08197c0890f14190b86ab7e0b8) or upgrade to a version that includes this fix once available. Until then, monitor vendor channels for official updates. No other specific mitigations are documented.
CVE-2026-7045: Injection in baomidou dynamic-datasource
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.
CVSS v4.0
Score 5.3medium
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-7045 affects baomidou dynamic-datasource 2.5.0 in the DsSpelExpressionProcessor#doDetermineDatasource method. This method uses Spring's StandardEvaluationContext and SpelExpressionParser to evaluate expressions for datasource determination. Improper input validation or sanitization leads to injection, classified under CWE-74 (Injection) and CWE-707 (Improper Neutralization). The attack can be initiated remotely without user interaction and requires low privileges. The CVSS 4.0 base score is 5.3, indicating medium severity. A patch commit (273fcedaee984c08197c0890f14190b86ab7e0b8) is referenced but no official vendor advisory or patch release is confirmed.
Potential Impact
Successful exploitation allows an attacker to perform injection attacks remotely, potentially manipulating datasource selection or behavior within the application. This could lead to unauthorized data access or modification depending on the context of use. The vulnerability requires low privileges and no user interaction, increasing its risk. However, the impact is rated medium due to limited scope and complexity.
Mitigation Recommendations
A patch commit identifier is referenced, indicating that a fix exists in the code repository. However, no official vendor advisory or patch release is confirmed. It is recommended to apply the referenced patch (commit 273fcedaee984c08197c0890f14190b86ab7e0b8) or upgrade to a version that includes this fix once available. Until then, monitor vendor channels for official updates. No other specific mitigations are documented.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulDB
- Date Reserved
- 2026-04-25T16:10:12.081Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
- Gcve Source
- db.gcve.eu
Threat ID: 69ee6bb668edb0b8f2495f30
Added to database: 4/26/2026, 7:47:02 PM
Last enriched: 4/26/2026, 8:01:36 PM
Last updated: 6/11/2026, 9:22:16 AM
Views: 123
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.