SQL Injection Affecting com.baomidou:mybatis-plus-core package, versions [0,]


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.25% (65th 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 SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-COMBAOMIDOU-2440550
  • published3 Apr 2022
  • disclosed2 Apr 2022
  • creditXiaolin Guo

Introduced: 2 Apr 2022

CVE-2022-25517  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

There is no fixed version for com.baomidou:mybatis-plus-core.

Overview

Affected versions of this package are vulnerable to SQL Injection due to improper user-input sanitization, via the column parameter in /core/conditions/AbstractWrapper.java.

Impact:

Based on the PoC, this vulnerability only impacts Confidentiality and the attacker does not have control over what kind of information they are able to access. Projects implementing this module will likely require authorization for running queries.

Note:

According to the maintainers, this is not to be considered an issue within the current library but with projects implementing it. Developers should perform sanitization checks when handling input from the front end and can use this class for verification purposes.

References

CVSS Scores

version 3.1