CVE-2026-69188

WeGIA: RCE via Backup Upload and `phar://` Controller Inclusion

Published Nov 17, 2026 CVSS 3.1 · 7.2 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

A user with backup‑management rights can upload a specially crafted gzip‑tar archive that is later included through the web controller using a phar:// stream. By selecting the InternoControle class, the attacker can cause the included controller file and its method to run under the web‑server account, giving the attacker read or modify access to sensitive files, configuration data, credentials, source files, and the ability to execute arbitrary host commands. The flaw is a file‑inclusion vulnerability (CWE‑434) combined with an improper resource‑list validation (CWE‑98).

Affected Systems

The vulnerability affects all installed releases of LabRedesCefetRJ WeGIA prior to version 3.9.1, including the 3.9.0 release referenced on GitHub. The backup directory (BKP_DIR) and permission model determine the accessibility of the exploit.

Risk and Exploitability

The CVSS score of 7.2 indicates a high severity. The EPSS score of 0.00626 (approximately 0.63%) reflects a very low but non-zero probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog, suggesting no currently known mass exploitation. An attacker can reach the flaw remotely via the web interface, provided the attacker has backup‑management rights, making exploitation remotely feasible. Given the potential to execute code as the web‑server user, the impact on confidentiality, integrity, and availability is significant.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official patch by upgrading to version 3.9.1 or later.
  • Restrict backup‑management permissions to trusted users only and consider disabling the backup import feature if not required.
  • Disable PHP phar stream usage by setting `phar.readonly=On` and removing the `phar://` include capability, or configure the server to reject `phar://` paths completely.

Generated by OpenCVE AI on November 18, 2026 at 22:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Labredescefetrj
Labredescefetrj wegia
Vendors & Products Labredescefetrj
Labredescefetrj wegia
Type Values Removed Values Added
Description 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.
Title WeGIA: RCE via Backup Upload and `phar://` Controller Inclusion
Weaknesses CWE-434
CWE-98
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type

  • CWE-98

    Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 18, 2026, 5:40 PM
Reserved
Aug 3, 2026, 4:00 PM
Status
Deferred
Published
Nov 17, 2026, 10:19 PM
Modified
Nov 18, 2026, 6:19 PM