{"id":"CVE-2023-25330","aliases":["CVE-2023-25330","GHSA-32qq-m9fh-f74w"],"related":[],"kind":"vulnerability","state":"published","title":"MyBatis-Plus vulnerable to SQL injection via TenantPlugin","summary":"A SQL injection vulnerability in Mybatis plus below 3.5.3.1 allows remote attackers to execute arbitrary SQL commands via the tenant ID valuer. NOTE: the vendor's position is that this can only occur in a misconfigured application; the documentation discusses how to develop applications that avoid SQL injection.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A SQL injection vulnerability in Mybatis plus below 3.5.3.1 allows remote attackers to execute arbitrary SQL commands via the tenant ID valuer. NOTE: the vendor's position is that this can only occur in a misconfigured application; the documentation discusses how to develop applications that avoid SQL injection.","source":"cvelist"},{"lang":"en","text":"MyBatis-Plus below 3.5.3.1 is vulnerable to SQL injection via the tenant ID value. This may allow remote attackers to execute arbitrary SQL commands.","format":"markdown","source":"ghsa"}],"published":"2023-04-05T00:00:00.000Z","modified":"2026-06-17T05:41:06.213Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.5.3.1"}],"ecosystem":"Maven","package":"com.baomidou:mybatis-plus","purl":"pkg:maven/com.baomidou/mybatis-plus","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.5.3.1"}],"vendor":"mybatis","product":"mybatis","cpe":"cpe:2.3:a:mybatis:mybatis:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/FCncdn/MybatisPlusTenantPluginSQLInjection-POC/blob/master/Readme.en.md","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://baomidou.com/reference/about-cve/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25330","tags":["advisory"],"sources":["ghsa"]},{"url":"https://baomidou.com/reference/about-cve","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/baomidou/mybatis-plus","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2024-05-29T14:22:19.442Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-25330","url":"https://www.cve.org/CVERecord?id=CVE-2023-25330","licence":"CVE Terms of Use","modified":"2024-08-02T11:18:36.292Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-32qq-m9fh-f74w","url":"https://github.com/advisories/GHSA-32qq-m9fh-f74w","licence":"CC-BY-4.0","modified":"2024-06-03T18:48:01.615Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-25330","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25330","licence":"Public domain","modified":"2026-06-17T05:41:06.213Z"}],"updatedAt":"2026-11-25T22:58:23.105Z","epss":{"score":0.0121,"percentile":0.6928,"date":"2026-12-01T12:00:22.000Z"}}