GitHub Advisoryadvisory · Maven
GHSA-6rmm-pg23-5f8q Dynamic-Datasource has an Injection vulnerability
MEDIUM
Official page ↗
- Aliases
- CVE-2026-7045
- Ecosystem
- Maven
- Packages
- com.baomidou:dynamic-datasource-spring
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- Weaknesses
- CWE-74
- Reviewed
- 2026-05-05
Affected packages
• Maven com.baomidou:dynamic-datasource-spring: <= 4.5.0 (no fix yet)
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.
Related
Alias · CVE (1)
- CVE-2026-7045 A vulnerability was determined in baomidou dynamic-datasource 2.5.0. vulnerability
Weakness · CWE (1)
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-7045 advisory
- https://github.com/baomidou/dynamic-datasource/issues/766 web
- https://github.com/baomidou/dynamic-datasource/pull/767 web
- https://github.com/baomidou/dynamic-datasource/commit/273fcedaee984c08197c0890f14190b86ab7e0b8 web
- https://github.com/baomidou/dynamic-datasource package
- https://vuldb.com/submit/798600 web
- https://vuldb.com/vuln/359624 web
- https://vuldb.com/vuln/359624/cti web