The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-40989

CVE-2023-40989: Jeecg Boot SQL Injection Vulnerability

CVE-2023-40989 is a SQL injection vulnerability in Jeecg Boot versions 3.0 and 3.5.3 that enables remote attackers to execute arbitrary code. This article covers the technical details, affected versions, and mitigation strategies.

Published: January 28, 2026

CVE-2023-40989 Overview

CVE-2023-40989 is a critical SQL injection vulnerability affecting JeecgBoot, a popular low-code development platform. This vulnerability allows remote attackers to execute arbitrary code by sending specially crafted requests to the report/jeecgboot/jmreport/queryFieldBySql component. The flaw stems from improper input validation in the SQL query handling mechanism, enabling attackers to manipulate database queries without authentication.

Critical Impact

Unauthenticated remote attackers can execute arbitrary SQL commands, potentially leading to complete database compromise, data exfiltration, and remote code execution on affected JeecgBoot installations.

Affected Products

  • JeecgBoot version 3.0
  • JeecgBoot version 3.5.3
  • Other versions between 3.0 and 3.5.3 may also be affected

Discovery Timeline

  • 2023-09-22 - CVE-2023-40989 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-40989

Vulnerability Analysis

This SQL injection vulnerability (CWE-89) exists in the JeecgBoot reporting module, specifically within the queryFieldBySql endpoint. The vulnerable component fails to properly sanitize user-supplied input before incorporating it into SQL queries executed against the backend database. This allows attackers to inject malicious SQL statements that are executed with the privileges of the database connection used by the application.

The vulnerability is particularly dangerous because it requires no authentication to exploit, can be triggered remotely over the network, and requires no user interaction. Successful exploitation can result in unauthorized access to sensitive data, modification or deletion of database contents, and potentially remote code execution depending on the database configuration and privileges.

Root Cause

The root cause of this vulnerability is insufficient input validation and lack of parameterized queries in the queryFieldBySql component. The application directly concatenates user-controlled input into SQL query strings without proper sanitization or the use of prepared statements. This classic SQL injection pattern allows attackers to break out of the intended query context and inject arbitrary SQL commands.

Attack Vector

The attack is conducted via network-based requests to the vulnerable endpoint at report/jeecgboot/jmreport/queryFieldBySql. An attacker crafts a malicious HTTP request containing SQL injection payloads in parameters processed by this component. Since no authentication is required, the attack surface is exposed to any network-accessible attacker.

The exploitation involves sending specially crafted requests that include SQL metacharacters and commands within parameter values. These malicious inputs are processed by the application and executed against the database, allowing the attacker to perform unauthorized database operations including data extraction, modification, and potentially operating system command execution through database-specific features.

For technical details and proof-of-concept information, refer to the GitHub PoC Repository.

Detection Methods for CVE-2023-40989

Indicators of Compromise

  • Unusual HTTP requests targeting /report/jeecgboot/jmreport/queryFieldBySql endpoints containing SQL keywords such as UNION, SELECT, INSERT, DELETE, or DROP
  • Database error messages in application logs indicating malformed SQL syntax or injection attempts
  • Unexpected database queries or operations in database audit logs, particularly those involving system tables or administrative functions
  • Network traffic anomalies showing repeated requests to the vulnerable endpoint with varying payloads

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block SQL injection patterns in requests to JeecgBoot reporting endpoints
  • Deploy intrusion detection systems (IDS) with signatures targeting common SQL injection techniques and the specific vulnerable endpoint
  • Enable comprehensive logging on the JeecgBoot application and monitor for requests containing SQL metacharacters or keywords in unexpected parameters
  • Configure database activity monitoring to alert on suspicious queries originating from the application service account

Monitoring Recommendations

  • Monitor application and web server access logs for requests to the queryFieldBySql endpoint with encoded or suspicious parameter values
  • Set up alerts for database errors related to SQL syntax that may indicate exploitation attempts
  • Track any unauthorized data access or privilege escalation events in database audit logs
  • Implement rate limiting and anomaly detection for the vulnerable endpoint to identify scanning or exploitation attempts

How to Mitigate CVE-2023-40989

Immediate Actions Required

  • Upgrade JeecgBoot to the latest patched version that addresses CVE-2023-40989
  • If immediate patching is not possible, restrict network access to the vulnerable jmreport/queryFieldBySql endpoint using firewall rules or reverse proxy configurations
  • Implement input validation at the web application firewall level to block requests containing SQL injection payloads
  • Review database privileges used by the JeecgBoot application and apply the principle of least privilege to minimize potential impact

Patch Information

Organizations should upgrade to the latest version of JeecgBoot that contains security fixes for this vulnerability. Check the official JeecgBoot project for the most recent security updates and patch releases. Before applying patches in production, test the updates in a staging environment to ensure application compatibility.

Workarounds

  • Deploy a Web Application Firewall (WAF) with SQL injection protection rules in front of JeecgBoot instances to filter malicious requests before they reach the application
  • Restrict access to the vulnerable reporting endpoint using network segmentation, allowing only authorized internal users or systems to access the /jmreport/ path
  • Disable or remove the vulnerable reporting functionality entirely if it is not required for business operations
  • Implement additional authentication requirements for the reporting module as a defense-in-depth measure
bash
# Example: Block access to vulnerable endpoint using nginx
location ~ /report/jeecgboot/jmreport/queryFieldBySql {
    deny all;
    return 403;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechJeecg

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability38.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • GitHub PoC Repository
  • Related CVEs
  • CVE-2026-2822: Jeecg Boot SQL Injection Vulnerability

  • CVE-2023-1454: Jeecg Boot SQL Injection Vulnerability

  • CVE-2024-40489: JeecgBoot Injection RCE Vulnerability

  • CVE-2026-2555: Jeecg Boot RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English