{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "source": "REFERENCES"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "273fcedaee984c08197c0890f14190b86ab7e0b8"
            }
          ],
          "repo": "https://github.com/baomidou/dynamic-datasource",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulDB",
    "cwe_ids": [
      "CWE-707",
      "CWE-74"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/7xxx/CVE-2026-7045.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "2.5.0"
          },
          {
            "last_affected": "2.5.0"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "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.",
  "id": "CVE-2026-7045",
  "modified": "2026-07-15T01:49:14.536186718Z",
  "published": "2026-04-26T13:45:15.529Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/baomidou/dynamic-datasource/"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/7xxx/CVE-2026-7045.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-7045"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/submit/798600"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/vuln/359624"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/baomidou/dynamic-datasource/issues/766"
    },
    {
      "type": "REPORT",
      "url": "https://vuldb.com/vuln/359624/cti"
    },
    {
      "type": "FIX",
      "url": "https://github.com/baomidou/dynamic-datasource/commit/273fcedaee984c08197c0890f14190b86ab7e0b8"
    },
    {
      "type": "FIX",
      "url": "https://github.com/baomidou/dynamic-datasource/pull/767"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "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/E:X",
      "type": "CVSS_V4"
    }
  ],
  "summary": "baomidou dynamic-datasource StandardEvaluationContext/SpelExpressionParser DsSpelExpressionProcessor.java DsSpelExpressionProcessor#doDetermineDatasource injection"
}