CVE-2025-7906 yangzongzhuan RuoYi CommonController.java uploadFile unrestricted upload

Medium 5.3 Published Updated

Attackers can upload malicious files via the CommonController uploadFile function, potentially leading to remote code execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-7906?

CVE-2025-7906 is a medium-severity vulnerability in Ruoyi Ruoyi, published on 20 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-434, CWE-284

Which versions are affected by CVE-2025-7906?

It affects 1 product.

Products include Ruoyi Ruoyi.

How do I fix CVE-2025-7906?

No fix has been published for CVE-2025-7906 yet. Limit exposure of the affected software until one is available.

Is CVE-2025-7906 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-7906 exists.

All Ruoyi Ruoyi vulnerabilities

Sources

Also known as GHSA-v2fm-69vv-qrc5.

Is CVE-2025-7906 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free