Skip to main content

WeGIA CVE-2025-58745

HIGH
Code Injection (CWE-94)
2025-09-08 security-advisories@github.com
8.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with low-privileged WeGIA account
  2. Delivery
    Craft PHP webshell with Excel magic bytes
  3. Exploit
    Upload via controla_xlsx.php bypassing MIME check
  4. Execution
    Request stored file to execute PHP
  5. Impact
    Gain 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 Mar 28, 2026 - 19:11 CVSS 9.9

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

NVD PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

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).

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Updated
Oct 18, 2026 - 22:11 vuln.today
v2 - CVSS changed
Severity Changed
Oct 18, 2026 - 21:38 NVD
CRITICAL HIGH
CVSS changed
Oct 18, 2026 - 21:38 NVD
9.9 (CRITICAL) 8.8 (HIGH)
PoC Detected
Sep 17, 2025 - 16:24 vuln.today
Public exploit code
CVE Published
Sep 08, 2025 - 23:15 nvd
CRITICAL 9.9

DescriptionNVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 56% exploitable
Prevalence
Low
niche open-source manager for charitable institutions, limited enterprise footprint
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

Code Injection CRITICAL

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

cpe:2.3:a:wegia:wegia:*:*:*:*:*:*:*:*

More in Wegia

View all
CVE-2025-50201 CRITICAL POC
9.8 Jun 19

Critical OS Command Injection vulnerability in WeGIA (a web management system for charitable institutions) versions prio

CVE-2025-27140 CRITICAL POC
10.0 Feb 24

WeGIA is a Web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely

CVE-2025-26613 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-55169 CRITICAL POC
10.0 Aug 12

WeGIA is an open source web manager with a focus on the Portuguese language and charitable institutions. Rated critical

CVE-2025-30364 CRITICAL POC
10.0 Mar 27

WeGIA is a Web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely

CVE-2025-46828 CRITICAL POC
10.0 May 07

WeGIA is a web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely

CVE-2025-26612 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26617 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26611 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26609 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26608 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

CVE-2025-26607 CRITICAL POC
10.0 Feb 18

WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy