Skip to main content

WeGIA CVE-2025-58159

HIGH
Code Injection (CWE-94)
2025-08-29 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-privilege account
  2. Delivery
    Access file upload feature
  3. Exploit
    Upload crafted .php file with embedded code
  4. Execution
    Request uploaded file via HTTP
  5. Impact
    Execute 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.

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

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

Alert me

AnalysisAIv3 – 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)
v2 Oct 18, 2026 - 22:12 cvss changed CVSS 8.8

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.

v1 Mar 28, 2026 - 19:09 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

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

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

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

6
Analysis Updated
Oct 18, 2026 - 22:12 vuln.today
v3 - CVSS changed
Analysis Updated
Oct 18, 2026 - 22:12 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 24, 2025 - 18:36 vuln.today
Public exploit code
CVE Published
Aug 29, 2025 - 23:15 nvd
CRITICAL 9.9

DescriptionNVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.6%
Top 29% exploitable
Prevalence
Low
niche web 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.6%
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

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

Attack Technique

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