Arbitrary file upload in WeGIA - CVE-2025-58745

 

Arbitrary file upload in WeGIA - CVE-2025-58745

Published: April 30, 2026


Vulnerability identifier: #VU128668
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-58745
CWE-ID: CWE-434
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary code.

The vulnerability exists due to unrestricted upload of file with dangerous type in /html/socio/sistema/controller/controla_xlsx.php when handling uploaded Excel files. A remote user can upload a crafted PHP file with Excel magic bytes to execute arbitrary code.

The issue can be exploited by bypassing MIME-type-only validation that does not verify the file extension and real file content.


Affected software

WeGIA

How to mitigate CVE-2025-58745

Install security update from vendor's website.

WeGIA - update to 3.4.11

External References

Related Security Bulletins