CVE-2023-49371
Java vulnerability analysis and mitigation

Overview

RuoYi up to version 4.6 was discovered to contain a SQL injection vulnerability in the /system/dept/edit component. The vulnerability was disclosed on December 1, 2023, and received a CVSS v3.1 base score of 9.8 (CRITICAL) (NVD, Advisory).

Technical details

The vulnerability exists in the /system/dept/edit route's handling of the 'ancestors' parameter. The SQL injection occurs when the parameter is directly concatenated into a SQL query with the pattern 'where dept_id in (${ancestors})', allowing for malicious SQL code execution. The vulnerability is classified as CWE-89: Improper Neutralization of Special Elements used in an SQL Command (NVD).

Impact

This vulnerability allows remote attackers to execute arbitrary SQL commands on the underlying database. With a CVSS v3.1 score of 9.8, it has critical severity due to its network accessibility, low attack complexity, and potential for high impacts on confidentiality, integrity, and availability of the system (NVD).

Mitigation and workarounds

Users should upgrade to a version newer than RuoYi v4.6. No specific workarounds have been published for users who cannot upgrade immediately.

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14306CRITICAL10
  • JavaJava
  • net.sf.robocode:robocode.core
NoYesDec 09, 2025
CVE-2025-14307CRITICAL9.3
  • JavaJava
  • net.sf.robocode:robocode.battle
NoYesDec 09, 2025
CVE-2025-66566HIGH8.2
  • JavaJava
  • at.yawk.lz4:lz4-java
NoYesDec 05, 2025
CVE-2025-66623HIGH7.4
  • JavaJava
  • io.strimzi:strimzi
NoYesDec 05, 2025
GHSA-93fv-4pm9-xp28MEDIUM6.9
  • JavaJava
  • net.dv8tion:jda
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management