CVE-2025-58159
JSON

10.0critical

WeGIA Authenticated Arbitrary File Upload Leading To Remote Code Execution (RCE)

Severity
10.0critical CVSS:3.1 by GitHub_M
Exploit likelihood
1.36% (higher than 72% of CVEs)
Published
Last changed
Assigned by
GitHub_M

Description

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.

Affected

Product or packageVersionsReported by
LabRedesCefetRJ WeGIA< 3.4.11CVE List
wegia wegiabefore 3.4.11NVD

All scores

GitHub_M10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94CWE-434

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

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.

NVD (es)

WeGIA es un gestor web para instituciones benéficas. Antes de la versión 3.4.11, fue identificada una vulnerabilidad de ejecución remota de código, causada por una validación inadecuada de los archivos subidos. La aplicación permite a un atacante subir archivos con nombres de archivo arbitrarios, incluyendo aquellos con una extensión .php. Debido a que el archivo subido se escribe directamente en el disco sin una sanitización o restricciones de extensión adecuadas, un archivo de hoja de cálculo seguido de código PHP puede ser subido y ejecutado en el servidor, lo que lleva a la ejecución de código arbitrario. Esto se debe a una mitigación insuficiente de CVE-2025-22133. Este problema ha sido parcheado en la versión 3.4.11.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-58159 changed 2025-09-02CVE Terms of Use
NVDCVE-2025-58159 changed 2026-10-18Public domain