Arbitrary file upload in WeGIA - CVE-2025-58745
Published: April 30, 2026
WeGIA
Detailed vulnerability description
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.