SecurityContext

CVE-2023-25330: Mybatis Plus - SQL Injection

  • Cve: CVE-2023-25330
  • Name: Mybatis Plus - SQL Injection
  • Description: 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.
  • Impact: Remote attackers can execute arbitrary SQL commands, potentially leading to data theft, modification, or deletion.
  • Remediation: Update to version 3.5.3.1 or later, and follow secure coding practices to prevent SQL injection.
  • Vulnerability type: sql_injection
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: logged_in
  • Requirements: Application must be misconfigured or vulnerable to injection
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.0121
  • Epss percentile: 0.69059
  • Assignee: [email protected]
  • Published at: 2023-04-05T14:15:07Z
  • Age in days: 1329
  • Modified at: 2026-06-17T05:41:06Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-25330
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-89Improper Neutralization of Special Elements used in an SQL Command

Public exploits

UrlSourceAdded date
https://github.com/FCncdn/MybatisPlusTenantPluginSQLInjection-POC/blob/master/Readme.en.mdnvd2023-04-05

References

UrlSourceTags
https://github.com/FCncdn/MybatisPlusTenantPluginSQLInjection-POC/blob/master/Readme.en.mdnvdExploit, Third Party Advisory
https://baomidou.com/reference/about-cve/nvd

Products

ProductAffectedPlatform boundSourcesUrl
mybatis:mybatis< 3.5.3.1nonvd/v1/products/mybatis/mybatis

Projects

RepositoryLink kindsIndexedUrl
baomidou/mybatis-pluspackageyes/v1/repositories/baomidou/mybatis-plus

Index

  • Repositories: 18
  • Repositories high signal: 11
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2023-04-05
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts