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

State
Published
Severity
7.2 High
Published
Nov 17, 2026
Updated
Nov 18, 2026
Reserved
Aug 3, 2026

Read the record on cve.org

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.

ProductVersions
WeGIA LabRedesCefetRJ< 3.9.1 Affected

Weaknesses

  • CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program
  • CWE-434 Unrestricted Upload of File with Dangerous Type

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.