CVE-2023-27025: RuoYi Arbitrary File Download Vulnerability

com.ruoyi:ruoyi Updated 02 Oct 2025

Summary

02/04/2023
Yes i
High
7.5

CVE-2023-27025: RuoYi vulnerable to arbitrary file download. Affects com.ruoyi:ruoyi versions < 4.7.7. Fixed in 4.7.7. 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

RuoYi is an open-source background management module that provides various functionalities for server management. It is commonly used for administrative tasks and data management. The package 'com.ruoyi:ruoyi' is vulnerable to an arbitrary file download vulnerability in versions 4.7.6 and below. This vulnerability allows attackers to download arbitrary files from the server, potentially leading to unauthorized access and data leakage.

Vulnerability Detail

The arbitrary file download vulnerability in RuoYi arises from a flaw in the background management module. Attackers can exploit this vulnerability by sending specially crafted requests to the server, tricking it into serving arbitrary files. This can result in the unauthorized disclosure of sensitive information, such as configuration files, user data, or any other file accessible to the server. The impact of this vulnerability can be severe, as it provides attackers with direct access to sensitive files and potentially exposes the entire server to further exploitation.

How To Fix

Minimum fixed version

4.7.7

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 access controls and input validation mechanisms to restrict unauthorized file downloads. This can be achieved by validating user input and ensuring that requested files are within the allowed scope. Additionally, it is recommended to implement server-side security measures, such as file whitelisting or access restrictions based on user roles, to further mitigate the risk of arbitrary file downloads.

Conclusion

The arbitrary file download vulnerability in RuoYi poses a significant risk to server security and data confidentiality. It is crucial for developers to promptly update their RuoYi dependencies to version 4.7.6 or above to mitigate this vulnerability. Implementing access controls and input validation mechanisms can serve as temporary workarounds until the update is applied. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for com.ruoyi:ruoyi →

Share this vulnerability

FAQ

The vulnerability allows attackers to download arbitrary files from the server, potentially leading to unauthorized access and data leakage. This can have severe consequences, including the exposure of sensitive information and the compromise of the entire server.

To fix this vulnerability, it is recommended to upgrade RuoYi to version 4.7.6 or above. This version includes a patch that addresses the arbitrary file download issue. Update the 'pom.xml' file to specify the updated version of the 'com.ruoyi:ruoyi' package and thoroughly test the application after the update.

As a temporary workaround, developers can implement access controls and input validation mechanisms to restrict unauthorized file downloads. It is also recommended to implement server-side security measures, such as file whitelisting or access restrictions based on user roles.

At the time of this report, there are no known public exploits specifically targeting this vulnerability. However, it is crucial to address the vulnerability promptly to prevent potential exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for com.ruoyi:ruoyi.

How To Fix

Minimum fixed version

4.7.7

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