{"id":"GHSA-6rmm-pg23-5f8q","summary":"Dynamic-Datasource has an Injection vulnerability","details":"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.","aliases":["CVE-2026-7045"],"modified":"2026-05-05T21:41:26.411812Z","published":"2026-04-27T00:30:27Z","database_specific":{"cwe_ids":["CWE-74"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-05-05T21:13:27Z","nvd_published_at":"2026-04-26T22:17:32Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7045"},{"type":"WEB","url":"https://github.com/baomidou/dynamic-datasource/issues/766"},{"type":"WEB","url":"https://github.com/baomidou/dynamic-datasource/pull/767"},{"type":"WEB","url":"https://github.com/baomidou/dynamic-datasource/commit/273fcedaee984c08197c0890f14190b86ab7e0b8"},{"type":"PACKAGE","url":"https://github.com/baomidou/dynamic-datasource"},{"type":"WEB","url":"https://vuldb.com/submit/798600"},{"type":"WEB","url":"https://vuldb.com/vuln/359624"},{"type":"WEB","url":"https://vuldb.com/vuln/359624/cti"}],"affected":[{"package":{"name":"com.baomidou:dynamic-datasource-spring","ecosystem":"Maven","purl":"pkg:maven/com.baomidou/dynamic-datasource-spring"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"4.5.0"}]}],"versions":["4.0.0","4.0.0-B1","4.0.0.B1","4.1.0","4.1.1","4.1.2","4.1.3","4.2.0","4.3.0","4.3.1","4.5.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-6rmm-pg23-5f8q/GHSA-6rmm-pg23-5f8q.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"},{"type":"CVSS_V4","score":"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"}]}