Summary
CVE-2026-54767 is a critical vulnerability in WeGIA, an open-source web manager used by charitable institutions to administer members, contributors, and associated personal data. The flaw stems from a hardcoded secret key embedded in a publicly-visible source file that gates a destructive database endpoint, allowing any unauthenticated remote attacker to permanently wipe member and contributor records. The issue carries a CVSS v3.1 base score of 9.1 (Critical) and affects all WeGIA versions up to and including 3.8.4.
Technical details
- Root cause: The endpoint
web/html/socio/sistema/controller/deletar_socios.phpauthorizes destructive operations by comparing a request parameter ($_GET['chave']) against a static, hardcoded secret string embedded directly in the application’s public source code repository (CWE-798: Use of Hard-Coded Credentials). - Missing authentication: Beyond the weak hardcoded check, the endpoint performs no session, role, or authentication verification whatsoever before executing privileged database operations (CWE-306: Missing Authentication for Critical Function).
- Trigger conditions: An attacker only needs network access to the WeGIA web application and knowledge of the hardcoded key value (obtainable by reviewing the public source repository) — no valid credentials, session, or user interaction are required.
- Attack vector: Remote, unauthenticated, low-complexity HTTP request over the network (AV:N/AC:L/PR:N/UI:N).
- Impact: Successful exploitation triggers
TRUNCATE TABLEoperations against theendereco,pessoafisica,pessoajuridica, andsociodatabase tables, resulting in permanent, irreversible destruction of address, individual, organization, and member/contributor records. There is no confidentiality impact, but integrity and availability impacts are both rated High.
Affected software
- WeGIA (web manager for charitable institutions) versions up to and including 3.8.4
- Fixed in version 3.8.5, where the vulnerable
deletar_socios.phpendpoint was removed entirely
Severity
- CVSS v3.1 Base Score: 9.1 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Mitigation and recommended actions
- Immediate: Upgrade WeGIA to version 3.8.5 or later, which removes the vulnerable
deletar_socios.phpendpoint entirely. - If immediate patching is not possible:
- Restrict network access to the WeGIA application to trusted internal networks or VPN only, blocking direct internet exposure.
- Remove or block access to the
socio/sistema/controller/deletar_socios.phppath at the web server or reverse proxy/WAF layer. - Rotate any credentials or secrets that may have been derived from or stored alongside the exposed hardcoded key.
- Ensure recent backups of member/contributor database tables exist and are tested for restoration, given the destructive nature of this vulnerability.

