CVE-2021-46089: SQL Injection in JeecgBoot

Summary

26/01/2022
No i
Critical
9.8

CVE-2021-46089: SQL Injection in JeecgBoot. Affects org.jeecgframework.boot:jeecg-boot-base versions < 3.0. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

JeecgBoot is a Maven-based package that provides a framework for developing enterprise-level Java applications. It offers various features and components to streamline the development process and enhance application functionality. However, JeecgBoot versions 0 to 3.0 are vulnerable to a critical SQL injection vulnerability, which can be exploited to gain unauthorized access to the database with root privileges.

Vulnerability Detail

The SQL injection vulnerability in JeecgBoot 3.0 allows an attacker to manipulate database queries by injecting malicious SQL code. By exploiting this vulnerability, an attacker can execute arbitrary SQL commands, potentially leading to unauthorized data access, data manipulation, or even complete control over the affected system. This vulnerability has a CVSS score of 9.8, indicating its severity.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, developers can implement input validation and parameterized queries to prevent SQL injection attacks. By validating user input and using parameterized queries, the risk of SQL injection can be significantly reduced. Here's an example of using parameterized queries in Java:

String sql = "SELECT * FROM users WHERE username = ? AND password = ?";
PreparedStatement statement = connection.prepareStatement(sql);
statement.setString(1, username);
statement.setString(2, password);
ResultSet resultSet = statement.executeQuery();

By using prepared statements and binding parameters, the SQL query is protected against SQL injection.

Conclusion

The SQL injection vulnerability in JeecgBoot 3.0 poses a significant risk to the security and integrity of affected systems. It is crucial to promptly update the JeecgBoot packages to the latest patched version and implement proper input validation and parameterized queries to mitigate the risk of SQL injection attacks. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.jeecgframework.boot:jeecg-boot-base →

Share this vulnerability

FAQ

JeecgBoot is a Maven-based package that provides a framework for developing enterprise-level Java applications. It offers various features and components to streamline the development process and enhance application functionality.

The SQL injection vulnerability in JeecgBoot 3.0 allows an attacker to execute arbitrary SQL commands, potentially leading to unauthorized data access, data manipulation, or even complete control over the affected system.

To fix this vulnerability, it is recommended to update the affected JeecgBoot packages to the latest patched version. The patch has been released on the repository's 'master' branch.

As a temporary workaround, developers can implement input validation and parameterized queries to prevent SQL injection attacks. By validating user input and using parameterized queries, the risk of SQL injection can be significantly reduced.

This vulnerability has a CVSS score of 9.8, indicating its severity.

Related vulnerabilities

Recent vulnerabilities recorded for org.jeecgframework.boot:jeecg-boot-base.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback