Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to WeGIA application
-
DeliveryAccess restaurar_produto.php endpoint
-
ExploitInject SQL via id_produto parameter
-
ExecutionExecute arbitrary database queries
-
ImpactExtract sensitive data from database
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 | Authenticated attacker with login credentials to WeGIA versions 3.6.5 and below. Attacker accesses the html/matPat/restaurar_produto.php endpoint and injects SQL via the id_produto GET parameter. No victim interaction required. |
| Impact | The CVSS v3.1 score of 9.3 (Critical) reflects network-based attack vector with low complexity, but notably the vector shows PR:N (No Privileges Required) which contradicts the description stating 'authenticated' access is needed, suggesting potential scoring inconsistency. The authentic requirement for authentication significantly reduces real-world risk compared to the CVSS score suggests. The vulnerability requires valid user credentials, limiting the attacker pool to insiders or compromised accounts. With Scope:Changed and High Confidentiality impact, successful exploitation could access data across database boundaries. No EPSS score is provided and absence from CISA KEV indicates no observed active exploitation. The availability of public proof-of-concept via GitHub advisory (GHSA-qg95-x997-66wq) and merged patch pull request (#1457) increases exploitation likelihood if organizations delay patching. Priority should be moderate-to-high for organizations running WeGIA with multiple authenticated users, but lower than unauthenticated RCE vulnerabilities. |
| Exploit ScenarioDerived | An authenticated attacker with valid credentials to the WeGIA system navigates to the product restoration functionality and crafts a malicious URL targeting html/matPat/restaurar_produto.php with a SQL injection payload in the id_produto parameter (e.g., id_produto=1' UNION SELECT username,password,email FROM users--). The unsanitized input executes arbitrary SQL commands, allowing the attacker to extract the complete user database, modify inventory records, or escalate privileges to administrative accounts. With public proof-of-concept available via the GitHub advisory, exploitation complexity is low for attackers with basic SQL injection knowledge and legitimate system access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 20, 2026
WeGIA, a web manager for charitable institutions, contains an authenticated SQL injection vulnerability in versions 3.6.5 and below via the id_producto parameter in the restaurar_produto.php endpoint. An authenticated attacker can execute arbitrary SQL commands to fully compromise the database, extracting sensitive donor information, beneficiary records, and administrative credentials. No evidence of active exploitation (not in CISA KEV) is currently available, though proof-of-concept details are publicly disclosed in the GitHub security advisory.
RemediationAI
Upgrade WeGIA to version 3.6.6 or later, which includes the security fix as documented in the release notes at https://github.com/LabRedesCefetRJ/WeGIA/releases/tag/3.6.6. The patch implementation can be reviewed in pull request #1457 at https://github.com/LabRedesCefetRJ/WeGIA/pull/1457 for organizations requiring code-level verification before deployment. Until patching is completed, implement compensating controls including restricting access to the restaurar_produto.php endpoint through web application firewall rules, enforcing strict input validation at the reverse proxy layer, limiting database user permissions to minimum required privileges, and monitoring database logs for suspicious SQL patterns or error messages indicating injection attempts. Organizations should also audit user accounts with access to the materials management module and implement principle of least privilege.
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 developed by LabRedesCefetRJ for managing charitable institution operations. The vulnerability stems from CWE-89 (SQL Injection) where user-supplied input from the $_GET['id_produto'] parameter is directly concatenated into SQL query strings without sanitization, type casting, or parameterized prepared statements. The affected component is html/matPat/restaurar_produto.php, specifically in product restoration functionality within the materials/patients management module. The CPE identifier cpe:2.3:a:labredescefetrj:wegia:*:*:*:*:*:*:*:* confirms this affects the core WeGIA application across all deployment configurations.
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:N/UI:N/S:C/C:H/I:L/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
3DescriptionGitHub Advisory
WeGIA is a web manager for charitable institutions. Versions 3.6.5 and below contain an authenticated SQL Injection vulnerability in the html/matPat/restaurar_produto.php endpoint. The vulnerability allows an authenticated attacker to inject arbitrary SQL commands via the id_produto GET parameter, leading to full database compromise. In the script /html/matPat/restaurar_produto.php, the application retrieves the id_produto parameter directly from the $_GET global array and interpolates it directly into two SQL query strings without any sanitization, type-casting (e.g., (int)), or using parameterized (prepare/execute) statements. This issue has been fixed in version 3.6.6.
Executive ViewAI
WeGIA versions 3.6.5 and below contain a critical SQL injection vulnerability affecting charitable institutions' database security. Authenticated users can execute arbitrary SQL commands to extract sensitive donor information, beneficiary records, and administrative credentials, creating immediate risk of data breach and operational compromise for organizations relying on this platform.
Apply vendor patch. Interim mitigations if patch deployment is delayed: implement strict input validation and parameterized queries on the restaurar_produto.php id_producto parameter, restrict database user permissions to minimum required privileges, monitor and log all database queries from the WeGIA application, and limit authenticated user access to administrative accounts 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.
Related Vulnerabilities in WeGIA SQL Injection and XSS Vulnerabilities
View all 4Critical 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-13678
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB