WeGIA
CVE-2025-58745
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privileged WeGIA account
-
DeliveryCraft PHP webshell with Excel magic bytes
-
ExploitUpload via controla_xlsx.php bypassing MIME check
-
ExecutionRequest stored file to execute PHP
-
ImpactGain remote code execution on server
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated session with at least low-level privileges (CVSS PR:L) that can reach the Excel-upload feature at the endpoint /html/socio/sistema/controller/controla_xlsx.php. The specific bypass condition is that this endpoint validates only the MIME type of uploaded Excel files, so an attacker must construct a PHP file that begins with legitimate Excel magic bytes to defeat the content-type check. The limiting factors are: valid authentication is needed (not fully unauthenticated), the attacker must be able to retrieve/execute the uploaded file from a web-accessible path, and instances already updated to version 3.4.11 (the complete fix) are not affected. No special non-default configuration is otherwise indicated - the flawed check appears to be the default behavior on affected versions. |
| Impact | This is a genuinely high-priority vulnerability, though the signals are nuanced. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N) describes a network-reachable, low-complexity attack requiring only low-level privileges and no user interaction, yielding full confidentiality, integrity, and availability impact (C:H/I:H/A:H) because the outcome is remote code execution via webshell upload (CWE-94). Publicly available exploit code exists, which lowers the barrier to opportunistic use. However, the EPSS score is low at 0.22% (44th percentile), and the CVE is NOT on the CISA KEV list, so there is no confirmed active exploitation - the low EPSS suggests limited real-world exploitation volume so far, consistent with a niche product rather than a mass-exploited internet-facing platform. A notable signal worth flagging: this is explicitly a bypass of an incomplete prior fix (CVE-2025-22133), where only Excel MIME types were validated and can be defeated by prepending Excel magic bytes to a PHP file - meaning organizations that believed they were patched remain vulnerable, which raises practical risk despite the modest EPSS. Net assessment: a real priority for anyone running WeGIA (patch to 3.4.11 promptly), but the overall internet-wide urgency is tempered by the product's limited deployment footprint and the authenticated-access precondition. No SSVC decision data was provided in the input. |
| Exploit ScenarioDerived | An attacker with a low-privileged authenticated account on a WeGIA instance crafts a malicious PHP webshell and prepends valid Excel (XLSX/OLE) magic bytes so it passes the MIME-type check at controla_xlsx.php. The file is uploaded and stored in a web-accessible location, and the attacker then requests it to execute arbitrary PHP code and gain remote code execution on the server. A public proof-of-concept exists, making this attack readily reproducible. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 18, 2026
Remote code execution in WeGIA allows an authenticated low-privileged user to upload a PHP webshell through the Excel-import endpoint /html/socio/sistema/controller/controla_xlsx.php by prepending Excel magic bytes to a PHP file, defeating the endpoint's MIME-type-only check. Versions before 3.4.11 are affected, and the 3.4.11 release contains the complete fix for this incomplete remediation of CVE-2025-22133. Publicly available exploit code exists, while EPSS is 0.22% (44th percentile), indicating low predicted exploitation likelihood.
Earlier versions of this analysis (1)
WeGIA is a Web manager for charitable institutions. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low attack complexity. Public exploit code available and no vendor patch available.
RemediationAI
Vendor-released patch: upgrade WeGIA to 3.4.11 or later, which contains the complete fix; the advisory is at https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-hq96-gvmx-qrwp. If immediate upgrade is not possible, restrict access to /html/socio/sistema/controller/controla_xlsx.php and the upload storage location to trusted authenticated users (trade-off: reduces exposure but does not remove the flaw), disable the Excel-import feature if it is not required (trade-off: loss of spreadsheet import functionality), and store uploaded files outside the web root or re-encode them with generated names while blocking PHP execution in upload directories (trade-off: application changes and possible import behavior changes). Monitor upload directories for unexpected .php files and review logs for suspicious uploads.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
WeGIA is a PHP-based web manager for charitable institutions, and the vulnerable upload handler is an Excel-import controller at /html/socio/sistema/controller/controla_xlsx.php. The handler reportedly validates only MIME types for Excel files, so an attacker can create a file whose leading bytes match Excel magic bytes but whose remainder contains PHP code; if the file lands in a web-accessible and PHP-executable location, the server processes it as code. The assigned CWE-94 (code injection) reflects the path from insufficient file-type validation to server-side code execution, and the CPE cpe:2.3:a:wegia:wegia:*:*:*:*:*:*:*:* covers affected releases before 3.4.11; exploitation requires a valid low-privileged session and reachability of the upload endpoint.
Know when Wegia gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Network-reachable upload endpoint (AV:N/AC:L) requires a low-privileged authenticated account (PR:L), no user interaction, and webshell RCE yields full C/I/A impact on the same host (S:U).
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
5DescriptionNVD
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.
Executive ViewAI
WeGIA versions before 3.4.11 contain a high-severity remote code execution flaw that can be triggered through the Excel-import endpoint, allowing a low-privileged user to upload a PHP webshell and potentially take control of the application server. Organizations running affected WeGIA instances should treat this as a priority remediation item because a successful exploit could expose sensitive data, disrupt services, and provide a foothold for further compromise; publicly available exploit code exists, although predicted exploitation likelihood remains low.
Apply vendor patch (upgrade to WeGIA 3.4.11). If immediate upgrade is not possible, restrict access to /html/socio/sistema/controller/controla_xlsx.php to trusted roles, disable the Excel-import feature, enforce server-side file-content validation beyond MIME-type checks, and monitor for anomalous PHP uploads or webshells.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)NVD
Critical OS Command Injection vulnerability in WeGIA (a web management system for charitable institutions) versions prio
WeGIA is a Web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source web manager with a focus on the Portuguese language and charitable institutions. Rated critical
WeGIA is a Web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely
WeGIA is a web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
NVD
CVE.org
EPSS
GitHub
Exploit-DB