MODERATE 6.3

CVE-2026-7045

Dynamic-Datasource has an Injection vulnerability

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
com.baomidou » dynamic-datasource-spring
<= 4.5.0
-

Blast radius

1affected artifacts
11affected versions
318dependent artifacts (est.)
3,106dependent versions

80% of the dependent artifacts (256) still pull an affected version in their latest release.

DepthDependent versions
Direct
28
2 hops
44
3 hops
1,232
4 hops
901
5 hops
590
6 hops
311

Most used dependents

Computed from the dependency graph of build 20261125.2201 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.