# CVE-2025-58745: WeGIA has a bypass for the fix for CVE-2025-22133 - Arbitrary File Upload leads to Remote Code Execution (RCE)

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.87%, higher than 60% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-09-08T22:40:56.389Z
- Modified: 2026-10-18T21:10:00.120Z
- Weaknesses: CWE-94, CWE-434
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- LabRedesCefetRJ WeGIA: < 3.4.11
- wegia wegia: before 3.4.11

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-hq96-gvmx-qrwp> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2025-58745](https://www.cve.org/CVERecord?id=CVE-2025-58745), CVE Terms of Use, modified 2025-09-09
- NVD: [CVE-2025-58745](https://nvd.nist.gov/vuln/detail/CVE-2025-58745), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-58745 · Whole record: https://cve.day/CVE-2025-58745.json · Rebuilt by cve.day 2026-11-25T22:59:04.351Z
