Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege credentials
-
DeliverySend crafted POST to despacho endpoint
-
ExploitInject cpf_usuario parameter
-
ExecutionOverwrite session identity via extract()
-
PersistExecute SQL query as target user
-
ImpactExtract sensitive database contents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires valid authenticated access to WeGIA with at least low-privileged user credentials (CVSS PR:L), which are typically easy to obtain in charitable organization contexts through volunteer registration or donor portals. The vulnerable code path must be reachable, specifically the DespachoControle::verificarDespacho() function handling memorando (memo/dispatch) operations. Exploitation works against default WeGIA installations without requiring special configuration. The attack is network-accessible (AV:N) and requires no user interaction (UI:N), making it fully automatable once credentials exist. Scope is unchanged (S:U), meaning the vulnerability does not allow escape from the WeGIA application context to the underlying system, though database-level access enables retrieval of all application data including credentials potentially reusable elsewhere. Exploitation is limited only by the requirement for authenticated session credentials - there are no additional feature toggles, non-default settings, or platform-specific requirements. |
| Impact | Real-world risk is HIGH for deployed WeGIA instances with multiple user tiers. The CVSS 8.8 score accurately reflects the severe impact - network-accessible, low complexity, requiring only low-privileged authentication with no user interaction, achieving full confidentiality, integrity, and availability impact. While no EPSS score or CISA KEV status indicates this is not yet widely exploited in the wild, the vulnerability's characteristics make it highly attractive: authenticated access is trivial to obtain in charitable institution management systems (often with public volunteer registration), the attack is fully automatable once credentials exist, and the technical impact enables complete database compromise including credential theft, data manipulation, and potential lateral movement. The GitHub Security Advisory (GHSA-666r-v2m7-xgp9) provides attacker guidance, lowering the skill barrier. Absence from KEV likely reflects the niche target base (charitable institutions) rather than low exploitability. Organizations running WeGIA should treat this as critical priority given the combination of ease of exploitation, high impact, and the sensitive nature of charitable organization data (donor information, beneficiary records). |
| Exploit ScenarioDerived | An attacker registers a low-privileged volunteer account on a charitable institution's WeGIA portal. They intercept a legitimate memorando dispatch request and modify the POST data to include 'cpf_usuario' set to an administrator's CPF (Brazilian tax ID). The extract($_REQUEST) call overwrites the session identity, and the subsequent SQL query executes under the administrator context, allowing the attacker to extract all donor financial records, beneficiary personal data, or modify access controls to establish persistent administrative access. The attacker can automate this to systematically enumerate all user identities and extract complete database contents. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 17, 2026
SQL injection in WeGIA charitable institution manager allows authenticated users to impersonate arbitrary identities and execute database queries with elevated privileges. The cpf_usuario parameter in dao/memorando/UsuarioDAO.php bypasses session-based identity controls through PHP's extract($_REQUEST) function, enabling any low-privileged authenticated user to query sensitive data or modify database contents as any other user, including administrators. WeGIA versions before 3.6.10 are affected. No public exploit identified at time of analysis, though exploitation complexity is low (CVSS AC:L) requiring only valid user credentials.
RemediationAI
Upgrade WeGIA to version 3.6.10 or later, which contains the vendor-released patch addressing both the unsafe extract($_REQUEST) usage and SQL injection vulnerability. The fix can be obtained from the official GitHub repository at https://github.com/LabRedesCefetRJ/WeGIA. If immediate patching is not feasible, implement the following compensating controls with noted limitations: (1) Disable or restrict access to the memorando/despacho functionality at the web server level (e.g., via .htaccess or nginx location blocks) - this prevents exploitation but breaks legitimate memo dispatch features used by administrators; (2) Implement Web Application Firewall rules to block POST requests containing 'cpf_usuario' parameter to affected endpoints - this may cause false positives if the parameter is legitimately used elsewhere in the application; (3) Restrict application access to only trusted IP ranges via firewall rules - this reduces attack surface but doesn't address insider threats from authenticated users on trusted networks. None of these workarounds fully mitigate the vulnerability; upgrading to 3.6.10 is the only complete remediation. Review application logs for suspicious cpf_usuario parameter usage or anomalous database queries under unexpected user contexts as potential indicators of prior exploitation.
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-based web application designed for managing charitable institutions. This vulnerability exploits PHP's extract() function, which creates variables from array keys - in this case, from the global $_REQUEST superglobal containing both GET and POST parameters. The affected code path is in DespachoControle::verificarDespacho() which calls extract($_REQUEST), allowing POST parameter 'cpf_usuario' to overwrite legitimate session-stored user identity variables. This attacker-controlled value is then directly concatenated into raw SQL queries in dao/memorando/UsuarioDAO.php without parameterization or input validation, constituting a classic CWE-89 SQL injection vulnerability. The dual nature of this flaw combines variable overwriting with SQL injection, making it particularly dangerous as it bypasses application-layer identity controls before the database query is even constructed.
Know when Wegia 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:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
3DescriptionCVE.org
WeGIA is a web manager for charitable institutions. Versions prior to 3.6.10 contain a SQL injection vulnerability in dao/memorando/UsuarioDAO.php. The cpf_usuario POST parameter overwrites the session-stored user identity via extract($_REQUEST) in DespachoControle::verificarDespacho(), and the attacker-controlled value is then interpolated directly into a raw SQL query, allowing any authenticated user to query the database under an arbitrary identity. Version 3.6.10 fixes the issue.
Executive ViewAI
WeGIA charitable institution manager versions before 3.6.10 contain a SQL injection vulnerability in user identity handling that allows any authenticated employee or volunteer to impersonate other users-including administrators-and access or modify sensitive donor, financial, and beneficiary data. Organizations using affected versions face immediate risk of unauthorized data access, fraud, and compliance violations (HIPAA, GDPR, state charitable regulations) by internal threat actors with basic user access.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict WeGIA database user account to read-only permissions where possible; (2) disable PHP's extract($_REQUEST) function globally via php.ini (disable_functions) or implement input validation framework to reject unexpected cpf_usuario parameter modifications; (3) implement database activity monitoring (DAM) to alert on queries using mismatched session user IDs; (4) enforce multi-factor authentication for administrative accounts to reduce impersonation impact; (5) isolate WeGIA environment network access to authorized staff only.
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
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Critical OS Command Injection vulnerability in WeGIA (a web management system for charitable institutions) versions prio
WeGIA is a Web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source web manager with a focus on the Portuguese language and charitable institutions. Rated critical
WeGIA is a Web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely
WeGIA is a web manager for charitable institutions. Rated critical severity (CVSS 10.0), this vulnerability is remotely
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
WeGIA is an open source Web Manager for Institutions with a focus on Portuguese language users. Rated critical severity
EUVD-2026-23529
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB