{"id":"CVE-2025-7906","summary":"yangzongzhuan RuoYi CommonController.java uploadFile unrestricted upload","details":"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.","modified":"2026-08-12T03:51:31.224976545Z","published":"2025-07-20T19:32:05.216Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/7xxx/CVE-2025-7906.json","cna_assigner":"VulDB","cwe_ids":["CWE-284","CWE-434"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/7xxx/CVE-2025-7906.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-7906"},{"type":"ADVISORY","url":"https://vuldb.com/?id.317021"},{"type":"ADVISORY","url":"https://vuldb.com/?submit.618361"},{"type":"REPORT","url":"https://github.com/yangzongzhuan/RuoYi/issues/296"},{"type":"REPORT","url":"https://vuldb.com/?ctiid.317021"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/yangzongzhuan/ruoyi","events":[{"introduced":"e9e07188956043bd19cf688f355b2e1841e04b74"},{"last_affected":"227d522eada11e426faad473705e69b4c16f144c"}],"database_specific":{"source":["AFFECTED_FIELD","CPE_RANGE"],"cpe":"cpe:2.3:a:ruoyi:ruoyi:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"4.8.0"},{"last_affected":"4.8.0"},{"introduced":"4.8.1"},{"last_affected":"4.8.1"},{"introduced":"0"}]}}],"versions":["4.8.0","4.8.1","v4.8.1","v4.8.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-7906.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"}]}