Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. com.baomidou/dynamic-datasource-spring
  4. ›
  5. CVE-2026-7045

CVE-2026-7045: Dynamic-Datasource has an Injection vulnerability

April 27, 2026 (updated May 5, 2026)

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.

References

  • github.com/advisories/GHSA-6rmm-pg23-5f8q
  • github.com/baomidou/dynamic-datasource
  • github.com/baomidou/dynamic-datasource/commit/273fcedaee984c08197c0890f14190b86ab7e0b8
  • github.com/baomidou/dynamic-datasource/issues/766
  • github.com/baomidou/dynamic-datasource/pull/767
  • nvd.nist.gov/vuln/detail/CVE-2026-7045
  • vuldb.com/submit/798600
  • vuldb.com/vuln/359624
  • vuldb.com/vuln/359624/cti

Code Behaviors & Features

Detect and mitigate CVE-2026-7045 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 4.5.0

Solution

Unfortunately, there is no solution available yet.

Impact 6.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Source file

maven/com.baomidou/dynamic-datasource-spring/CVE-2026-7045.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:58 +0000.