{"id":"CVE-2025-58745","published":"2025-09-08T22:40:56Z","modified":"2025-09-09T13:29:48Z","title":"WeGIA has a bypass for the fix for CVE-2025-22133 - Arbitrary File Upload leads to Remote Code Execution (RCE)","vendor":"LabRedesCefetRJ","product":"WeGIA","tier":"tail","description":{"text":"WeGIA is a Web manager for charitable institutions. The fix for CVE-2025-22133 was not enough to remediate the arbitrary file upload vulnerability. The WeGIA only check MIME types for Excel files at endpoint `/html/socio/sistema/controller/controla_xlsx.php`, which can be bypassed by using magic bytes of Excel file in a PHP file. As a result, attacker can upload webshell to the server for remote code execution. Version 3.4.11 contains an updated fix.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00773,"percentile":0.55574,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"references":[{"url":"https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-hq96-gvmx-qrwp","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.1,"factors":[{"name":"EPSS percentile","points":11.11},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"labredescefetrj","affectedVersions":[{"vendor":"LabRedesCefetRJ","product":"WeGIA","versions":["< 3.4.11"]}],"euvd":{"id":"EUVD-2025-27183","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-labredescefetrj-wegia-cve-2025-22133","parents":[{"from":"CVE-2025-22133","to":"CVE-2025-58745","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"The fix for CVE-2025-22133 was not enough to remediate the arbitrary file upload vulnerability.","from":"CVE.org","in":"CVE-2025-58745"}]}]}}