CVE-2022-32065
Java vulnerability analysis and mitigation

Overview

An arbitrary file upload vulnerability was discovered in the background management module of RuoYi version 4.7.3 and below, identified as CVE-2022-32065. The vulnerability was discovered on May 16, 2022, and allows attackers to execute arbitrary code via crafted HTML files uploaded through the avatar upload functionality (CVE Details, Gitee Issue).

Technical details

The vulnerability exists in the avatar upload functionality of RuoYi's background management module. The system failed to properly validate file extensions and content during the avatar upload process, allowing attackers to upload HTML files with malicious content. The vulnerability could be exploited by uploading an HTML file with embedded XSS payloads through the avatar upload interface (GitHub Issue).

Impact

If successfully exploited, this vulnerability allows attackers to execute arbitrary code through stored XSS attacks. When other users with management permissions access the system, they could trigger the malicious code embedded in the uploaded HTML file, potentially leading to unauthorized actions being performed in their context (Gitee Issue).

Mitigation and workarounds

The vulnerability has been patched by implementing proper file extension validation for avatar uploads. The fix restricts uploaded files to image extensions only and was implemented in the commit d8b2a9a. Users should update to the latest version of RuoYi that includes this security fix (RuoYi Commit).

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-66516CRITICAL10
  • JavaJava
  • opensearch-2
NoYesDec 04, 2025
CVE-2025-66566HIGH8.2
  • JavaJava
  • org.lz4:lz4-pure-java
NoYesDec 05, 2025
CVE-2025-66623HIGH7.4
  • JavaJava
  • io.strimzi:strimzi
NoYesDec 05, 2025
CVE-2025-11222MEDIUM6.1
  • JavaJava
  • com.linecorp.centraldogma:centraldogma-server-auth-shiro
NoYesDec 04, 2025
CVE-2025-66453MEDIUM5.5
  • JavaJava
  • org.mozilla:rhino
NoYesDec 03, 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