{"id":"CVE-2025-58159","published":"2025-08-29T22:15:12Z","modified":"2025-09-02T19:24:25Z","title":"WeGIA Authenticated Arbitrary File Upload Leading To Remote Code Execution (RCE)","vendor":"LabRedesCefetRJ","product":"WeGIA","tier":"tail","description":{"text":"WeGIA is a Web manager for charitable institutions. Prior to version 3.4.11, a remote code execution vulnerability was identified, caused by improper validation of uploaded files. The application allows an attacker to upload files with arbitrary filenames, including those with a .php extension. Because the uploaded file is written directly to disk without adequate sanitization or extension restrictions, a spreadsheet file followed by PHP code can be uploaded and executed on the server, leading to arbitrary code execution. This is due to insufficient mitigation of CVE-2025-22133. This issue has been patched in version 3.4.11.","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.00755,"percentile":0.54969,"provenance":"source"},"cwes":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"},{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-wj2c-237g-cgqp","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.0,"factors":[{"name":"EPSS percentile","points":10.99},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"labredescefetrj","affectedVersions":[{"vendor":"LabRedesCefetRJ","product":"WeGIA","versions":["< 3.4.11"]}],"euvd":{"id":"EUVD-2025-28664","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-labredescefetrj-wegia-cve-2025-22133","parents":[{"from":"CVE-2025-22133","to":"CVE-2025-58159","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This is due to insufficient mitigation of CVE-2025-22133.","from":"CVE.org","in":"CVE-2025-58159"}]}]}}