Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with backup-management permission
-
DeliveryUpload crafted gzip tar archive
-
ExploitSet modulo to phar:// path of upload
-
Executionrequire_once loads embedded InternoControle
-
PersistController method runs as web-server user
-
ImpactArbitrary PHP and OS command execution
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V5 - File Handling File inclusion prevention, allowlisting
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Command and Control 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 WeGIA user holding the backup-management permission (PR:H) - this is the primary limiting factor and excludes anonymous/low-privilege remote attackers. The attacker must be able to upload a crafted gzip/tar archive via web/html/configuracao/importar_dump.php and must know the configured BKP_DIR path to build the phar:// modulo value; the default is /var/www/bkpWeGIA, and customized BKP_DIR installations require the attacker to know that path. Affected versions are WeGIA <= 3.9.0 (fixed in 3.9.1). Note the PHP hardening settings phar.readonly=On and phar.require_hash=On do NOT prevent this exploitation, because PHP still reads and executes files from the gzip tar archive through phar://. The whitelisted InternoControle, treated as authorized due to its empty resource list, is what makes the inclusion reachable. |
| Impact | This is a genuine high-impact RCE but with a meaningful access barrier, so it sits below the 'drop everything' tier. The supplied CVSS 3.1 vector (AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H, base 7.2) explicitly encodes PR:H - exploitation requires an authenticated account holding the backup-management permission - so this is not a pre-auth internet-facing bug. Against that, the technical impact is severe: full arbitrary PHP/OS command execution as the web-server account with C:H/I:H/A:H. No EPSS score and no KEV status are present in the input, so there is no signal of widespread or active exploitation; absence of these is not evidence of safety, merely missing data. The vuln.today Decision label is 'this_week' (not act_now/emergency), consistent with a serious-but-authenticated flaw. A detailed, reporter-validated PoC is published in the GHSA advisory, which raises the practical likelihood that a malicious or compromised privileged user, or an attacker who has already phished/obtained a backup-admin session, can achieve code execution. Net: prioritize for prompt patching (this week) rather than emergency response, with the caveat that the real risk is dominated by how tightly the backup-management permission is controlled and whether the backup directory path is known/default. |
| Exploit ScenarioDerived | An attacker who controls a WeGIA account with the backup-management permission (an insider, or an attacker who hijacked such a session) uploads a gzip-compressed tar archive containing a malicious InternoControle.php through importar_dump.php. They then call control.php with modulo set to a phar:// path pointing at their uploaded archive in BKP_DIR (default /var/www/bkpWeGIA), causing require_once() to load and execute the embedded controller and its method as the web-server process. A full working PoC demonstrating this chain is published in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
Authenticated PHP code execution in WeGIA 3.9.0 and earlier lets a user holding the backup-management permission upload a crafted gzip/tar archive and then have an embedded controller file loaded and run as the web-server process. The chain combines an unrestricted upload in web/html/configuracao/importar_dump.php with a user-controlled 'modulo' path in web/controle/control.php that is concatenated into require_once(), so pointing modulo at phar://<BKP_DIR>/<uploaded-archive> and naming the whitelisted InternoControle executes attacker code - both top-level file code and the requested controller method. Exploitation requires a valid session with backup-management rights (CVSS PR:H), the ability to reach the upload endpoint, and knowledge of the configured BKP_DIR (default /var/www/bkpWeGIA); a full proof-of-concept with curl commands is published in the vendor's GitHub security advisory. CVSS 3.1 base score 7.2 (AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H); no CISA KEV listing is present in the supplied data, and the priority guidance places remediation in the this_week window.
RemediationAI
Vendor-released patch: upgrade WeGIA to 3.9.1, which is the complete fix per the advisory; the patch adds rejection of stream-wrapper prefixes (phar://, file://), directory traversal and absolute paths for the 'modulo' parameter in web/controle/control.php, and adds extension, MIME-type and realpath containment validation for uploads in web/html/configuracao/importar_dump.php, so the phar:// inclusion path and the malicious-archive upload both fail. Advisory and diff details are at https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-vxf4-mrgm-vp43, https://github.com/LabRedesCefetRJ/WeGIA/commit/620ed2997ead2c7da6829e5b70dd0b81e2a2f98e and https://github.com/LabRedesCefetRJ/WeGIA/pull/1892. Note that disabling or hardening PHAR settings does not help here: the advisory confirms the exploit still succeeded with phar.readonly=On and phar.require_hash=On, so those INI settings are not a valid workaround. The only barrier evidenced for unpatched instances is the prerequisite permission itself - the attacker must already hold an authenticated account with backup-management rights - so until 3.9.1 is deployed, restricting that permission to trusted administrators (and reviewing which accounts currently hold it) is the exposure-reduction step supported by the reported prerequisites, with the trade-off that those administrators lose the ability to import or list backups.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
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 web application, and this is a PHP Remote File Inclusion issue (CWE-98, with CWE-434 unrestricted upload as the enabling weakness). Two design decisions combine: the dump importer validates an upload loosely - filename ending in dump.tar.gz plus a gzip or tar MIME type - and writes it into BKP_DIR under a predictable timestamp name that the backup UI then discloses; separately, the central dispatcher in web/controle/control.php builds $pathRequire from an attacker-supplied 'modulo' parameter, appends the user-supplied nomeClasse and '.php', and passes the result to require_once(). FILTER_SANITIZE_SPECIAL_CHARS does not strip the phar:// scheme, and the controller whitelist treats InternoControle as authorized because its resource list is empty, so the inclusion is reachable. Because PHP can read and execute files from a gzip-compressed tar archive through the phar:// stream wrapper, the attacker's embedded InternoControle.php is loaded from the uploaded backup; the advisory confirms this works even with phar.readonly=On and phar.require_hash=On, since those settings limit archive creation and signature enforcement rather than phar:// reads of tar-based archives. Resulting code runs with the web-server account's privileges, exposing configuration, database credentials, institutional data, source files, host commands, and reachable services. The upstream fix (commit 620ed2997ead2c7da6829e5b70dd0b81e2a2f98e, PR 1892) rejects stream-wrapper prefixes, directory traversal and absolute paths in control.php, and adds extension, MIME and realpath containment checks in importar_dump.php.
Know when PHP 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:H/UI:N/S:U/C:H/I:H/A:H
Network-reachable dispatcher with low complexity, but the backup-management permission and file upload require high privilege (PR:H); full code execution gives C/I/A High within the unchanged web-server scope.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
WeGIA is a web manager for charitable institutions. Prior to 3.9.1, a user with backup-management permission can upload a crafted gzip-compressed tar archive through web/html/configuracao/importar_dump.php, after which web/controle/control.php accepts a user-controlled modulo value and combines it with nomeClasse for require_once(). By using a phar:// path to the uploaded archive and selecting the whitelisted InternoControle, whose empty resource list is treated as authorized, the user can cause an embedded controller file and its requested method to execute as the web-server process. The attack path depends on the configured BKP_DIR, and enabling phar.readonly or phar.require_hash does not prevent PHP from reading the gzip tar archive through phar://. Successful exploitation permits access to or modification of sensitive data, configuration, credentials, source files, host commands, and services reachable by the web-server account. This issue is fixed in version 3.9.1.
Technical POC Analysis
CWE-98 (Improper Control of Filename for Include/Require Statement), enabled by CWE-434 (Unrestricted Upload of File with Dangerous Type).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity vulnerability in WeGIA (versions 3.9.0 and earlier) enables authenticated users with backup-management permissions to execute arbitrary PHP code on the web server by uploading a malicious archive. This could lead to full server compromise, data breaches, or service disruption, affecting the confidentiality, integrity, and availability of the application and its data. Leadership should prioritize remediation because exploitation requires only a valid privileged session, and a public proof-of-concept is available.
Apply vendor patch.
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
Local File Inclusion vulnerabilities occur when an application accepts user-controlled input to specify which file should be loaded or executed, typically through functions like PHP's `include()`, `require()`, or `fopen()`.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-128183
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB