Improper Neutralization of Special Elements in Data Query Logic Affecting com.baomidou:dynamic-datasource-spring-boot-common package, versions [2.5.0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Neutralization of Special Elements in Data Query Logic vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-COMBAOMIDOU-16638628
  • published11 May 2026
  • disclosed26 Apr 2026
  • creditwing3e

Introduced: 26 Apr 2026

NewCVE-2026-7045  (opens in a new tab)
CWE-943  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Data Query Logic via the DsSpelExpressionProcessor in the datasource key resolution path. An attacker can trigger arbitrary expression evaluation by supplying a datasource key expression that uses SpEL type references or constructor expressions, allowing execution of attacker-controlled code in the application process. This can lead to remote code execution or process spawning under the privileges of the running service, putting the host and application data at risk.

CVSS Base Scores

version 4.0
version 3.1