CVE-2023-40989: SQL Injection in jeecgboot

Summary

22/09/2023
Yes i
Critical
9.8

CVE-2023-40989: SQL injection in jeecgboot. Affects org.jeecgframework.boot:jeecg-boot-common versions < 3.6.0. Fixed in 3.6.0. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The jeecgboot package, specifically the jeecg-boot-common module, is an open-source framework for developing enterprise-level Java applications. It provides various features and components to streamline application development. However, versions 3.0 to 3.5.3 of jeecgboot are vulnerable to SQL injection attacks.

Vulnerability Detail

The SQL injection vulnerability in jeecgboot (jeecg-boot v 3.0, 3.5.3) allows remote attackers to execute arbitrary code by exploiting a flaw in the report/jeecgboot/jmreport/queryFieldBySql component. By crafting a malicious request, an attacker can inject SQL code, potentially leading to unauthorized access, data leakage, or even remote code execution.

How To Fix

Minimum fixed version

3.6.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, developers can implement input validation and parameterized queries to mitigate the risk of SQL injection. By validating and sanitizing user input, and using prepared statements or parameterized queries, the application can prevent malicious SQL code from being executed.

Conclusion

The SQL injection vulnerability in jeecgboot poses a significant risk to applications using affected versions. It is crucial to promptly upgrade to a patched version and implement proper input validation and parameterized queries to prevent SQL injection attacks. For further assistance and support in vulnerability remediation, please contact DevNack.com.

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

Share this vulnerability

FAQ

Jeecgboot is an open-source framework for developing Java applications, providing various features and components to streamline enterprise-level application development.

Versions 3.0 to 3.5.3 of jeecgboot are vulnerable to this SQL injection vulnerability.

This vulnerability allows remote attackers to execute arbitrary code, potentially leading to unauthorized access, data leakage, or remote code execution.

To fix this vulnerability, upgrade to jeecgboot version 3.5.4 or later. Additionally, implement input validation and parameterized queries to prevent SQL injection attacks.

As a temporary workaround, developers can implement input validation and parameterized queries to mitigate the risk of SQL injection.

Related vulnerabilities

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

How To Fix

Minimum fixed version

3.6.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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