CVE-2025-7906 Details
Description
A vulnerability was found in yangzongzhuan RuoYi up to 4.8.1 and classified as critical. This issue affects the function uploadFile of the file ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java. The manipulation of the argument File leads to unrestricted upload. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used.
A critical vulnerability allowing unrestricted file uploads has been identified in yangzongzhuan RuoYi versions through 4.8.1. This issue arises in the uploadFile function within the CommonController.java file. The vulnerability allows users to upload HTML, HTM, and PDF files without proper sanitization, leading to the execution of malicious JavaScript code. The vulnerability can be exploited remotely, and a public exploit is available.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 21, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/yangzongzhuan/RuoYi/issues/296 | [email protected] | ExploitIssue TrackingVendor Advisory |
| https://vuldb.com/?ctiid.317021 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.317021 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.618361 | [email protected] | Third Party AdvisoryVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-284 | Improper Access Control | [email protected] |
| CWE-434 | Unrestricted Upload of File with Dangerous Type | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| ruoyi ruoyi | <= 4.8.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Sep 11, 2025 | Initial Analysis | [email protected] |
| Jul 20, 2025 | New CVE Received | [email protected] |