WeGIA
CVE-2025-58159
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privilege account
-
DeliveryAccess file upload feature
-
ExploitUpload crafted .php file with embedded code
-
ExecutionRequest uploaded file via HTTP
-
ImpactExecute arbitrary PHP 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 | Requires an authenticated low-privilege account (CVSS PR:L) with access to WeGIA's file-upload functionality. The specific precondition is that the application accepts uploaded files with attacker-controlled filenames (including .php extensions) and writes them directly to a web-accessible disk location without extension restriction or content sanitization - the vulnerable upload handler must process a spreadsheet file carrying trailing PHP code. Exploitation is limited to WeGIA instances running versions prior to 3.4.11; it is not reachable by fully unauthenticated attackers, and it is a resurfacing of CVE-2025-22133 whose earlier mitigation was insufficient. No user interaction is required once the attacker has valid credentials. |
| Impact | This is a genuine but moderate-priority risk. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N) describes a network-reachable, low-complexity attack requiring only low-level authenticated privileges and no user interaction, with full C:H/I:H/A:H impact consistent with arbitrary code execution (CWE-94). Publicly available exploit code exists (per the GitHub Security Advisory reference), which lowers the barrier to exploitation. However, the EPSS score is low at 0.65% (71st percentile), and the CVE is NOT listed in CISA KEV, so there is no public evidence of active exploitation in the wild despite a working POC - do not conflate POC availability with active exploitation. The practical risk is constrained by two factors: exploitation requires valid authenticated access (PR:L), and WeGIA is a niche application for charitable institutions with a limited deployment footprint, so mass exploitation is unlikely even with public exploit code. Net assessment: a real, patchable RCE worth prioritizing for the specific organizations running WeGIA, but not a broad internet-wide emergency. Note the description frames this as insufficient mitigation of CVE-2025-22133, indicating a prior incomplete fix - verify the upgrade to 3.4.11 fully resolves the upload bypass. |
| Exploit ScenarioDerived | An attacker with low-privileged authenticated access to a WeGIA instance (prior to 3.4.11) uses the file-upload feature to upload a file with a .php extension containing a spreadsheet payload followed by PHP code. Because the file is written to a web-accessible location without extension or content sanitization, the attacker then requests the uploaded .php file over HTTP to trigger server-side execution of their code. Public exploit code for this technique is available via the GitHub Security Advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Oct 18, 2026
Authenticated remote code execution in WeGIA prior to 3.4.11 lets a low-privilege user upload a spreadsheet carrying trailing PHP code under an attacker-controlled .php filename, which the application writes to a web-accessible location and executes. The flaw is an incomplete fix for CVE-2025-22133, requires PR:L credentials and access to the upload feature, and is not exploitable by unauthenticated users. Publicly available exploit code exists; EPSS is 0.65% (71st percentile), so prioritization should focus on exposed WeGIA deployments that permit low-privilege uploads.
Earlier versions of this analysis (2)
Remote code execution in WeGIA prior to 3.4.11 is a credible, actionable priority rather than an inflated high-CVSS score, because an authenticated low-privilege user can upload a crafted spreadsheet/PHP polyglot with a .php filename that is written to a web-accessible location and executed by the PHP interpreter. Publicly available exploit code exists, with EPSS at 0.65% (71st percentile) and no CISA KEV entry indicated. The vendor patched the issue in 3.4.11.
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
Upgrade WeGIA to 3.4.11 or later; this is the vendor-released patch for CVE-2025-58159 and addresses the incomplete CVE-2025-22133 mitigation. The vendor advisory is at https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-wj2c-237g-cgqp. Until upgraded, restrict access to upload functionality to trusted roles because exploitation requires an authenticated low-privilege account and a reachable upload handler. Enforce a server-side filename and extension allowlist that rejects PHP-capable extensions, with the trade-off that legitimate spreadsheet uploads must match approved file types. Store uploaded files outside the web root or configure the web server to deny PHP execution in upload directories; this can break preview or download features that depend on direct web access. Add content inspection to strip or reject trailing PHP code in spreadsheets, accepting that some unusual but valid files may be rejected.
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 application, and the vulnerable behavior is in its file-upload handling. CWE-94 (Improper Control of Generation of Code / Code Injection) applies because the application trusts user-controlled filenames and file content: it permits arbitrary filenames, including .php extensions, and writes uploaded files directly to disk without adequate extension restrictions or sanitization. An attacker can supply a spreadsheet file with appended PHP code; if the file lands in a web-accessible directory and the web server executes PHP there, the trailing code runs under the web server account. The CPE cpe:2.3:a:wegia:wegia:*:*:*:*:*:*:*:* identifies WeGIA as the affected product, while the advisory scopes affected versions to prior to 3.4.11. The CVSS vector confirms network reachability, low privileges required, no user interaction, and high confidentiality, integrity, and availability impact; exploitation is limited to authenticated users with upload access and is a resurfacing of CVE-2025-22133 because the earlier mitigation was insufficient.
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) with no exploit hurdles (AC:L) but requires an authenticated low-privilege account (PR:L); RCE yields full host compromise, so C/I/A all High.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
6DescriptionNVD
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.
Executive ViewAI
WeGIA deployments that permit low-privilege users to upload files are exposed to authenticated remote code execution, allowing a compromised or malicious account to convert a spreadsheet upload into server takeover. Publicly available exploit code exists for versions prior to 3.4.11, so leadership should prioritize exposed instances and environments with broad upload rights because the flaw can lead to data exposure, service disruption, and lateral movement from an initially low-privilege account.
No vendor-released patch identified at time of analysis; if the referenced WeGIA 3.4.11 release is available from the vendor, apply it. Interim mitigations include restricting or disabling file uploads for low-privilege users, storing uploads outside the web root, blocking PHP execution and .php filenames in upload directories, enforcing allowlisted file types and content validation, and monitoring for anomalous uploads.
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
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