Summary
CVE-2026-54670 is a critical vulnerability in WeGIA, an open-source web management platform used by charitable institutions, that allows unauthenticated attackers to bypass authorization checks and perform path traversal / local file inclusion through the contribution management controller. The flaw combines a missing-authentication check (CWE-306) with insufficient input validation on controller/method names (CWE-22), letting remote attackers access sensitive financial and donor data or include arbitrary files without any credentials. It carries a CVSS v3.1 base score of 9.1 (Critical).
Technical details
- Root cause: The request dispatcher in
/html/contribuicao/controller/control.phpexplicitly exempts theContribuicaoLogControllerfrom the application’s authentication check, so any request targeting that controller executes without a valid session. - Input validation gap: Unlike the main
control.php, which enforces a whitelist of over 50 valid controller/method combinations, the contribution dispatcher only sanitizes attacker-suppliednomeClasse(controller) andmetodo(method) parameters withhtmlspecialchars(), rather than restricting them to an allowlist. - Path traversal: Because the controller name is used to build a file inclusion path without canonicalization or restriction, attackers can supply traversal sequences to include files outside the intended directory.
- Attack vector: Network-based, no authentication or user interaction required (AV:N/AC:L/PR:N/UI:N).
- Impact: Unauthenticated attackers can invoke sensitive methods (e.g.,
getContribuicoesLogJSON,sincronizarStatus) to disclose donation/contribution records containing PII and financial data, trigger payment-gateway synchronization or fraudulent billing operations, and potentially read files containing database credentials or source code via the path traversal flaw. NVD/CVSS scoring reflects high confidentiality and integrity impact with no availability impact (C:H/I:H/A:N).
Affected software
- WeGIA (WeGIA – Web manager for charitable institutions), by LabRedesCefetRJ
- All versions up to and including 3.8.4
Severity
- CVSS v3.1 Base Score: 9.1 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Mitigation and recommended actions
- Immediate: Upgrade WeGIA to version 3.8.5 or later, which fixes the authentication bypass and adds proper controller/method validation for the contribution module.
- If immediate patching is not possible:
- Restrict network access to the WeGIA instance (e.g., place it behind a VPN or IP allowlist) to limit exposure to trusted users only.
- Use a web application firewall (WAF) to block requests to the contribution controller endpoint (
control.phpunder/html/contribuicao/) that contain unexpectednomeClasse/metodovalues or path traversal sequences (e.g.,../). - Monitor logs for unauthenticated requests to contribution-related endpoints and for anomalous file-inclusion patterns.
- Rotate any credentials that may be stored in configuration files potentially exposed via path traversal.

