Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 79%

CVE-2026-7045: Injection in baomidou dynamic-datasource

0
Medium
VulnerabilityCVE-2026-7045gcvecve-2026-7045cwe-74cwe-707
Published: Sun Apr 26 2026 (04/26/2026, 13:45:15 UTC)
Source: GCVE Database
Vendor/Project: baomidou
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Affected versions
=2.5.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/26/2026, 20:01:36 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses