CVE-2026-31895 in WeGIAinfo

Summary

by MITRE • 03/11/2026

WeGIA is a web manager for charitable institutions. Prior to version 3.6.6, WeGIA (Web gerenciador para instituições assistenciais) contains a SQL injection vulnerability in html/matPat/restaurar_produto.php. The id_produto parameter from $_GET is directly interpolated into SQL queries without parameterization or sanitization. This vulnerability is fixed in 3.6.6.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 03/14/2026

The vulnerability identified as CVE-2026-31895 affects WeGIA, a web management system specifically designed for charitable institutions and social assistance organizations. This application serves as a critical administrative tool for managing institutional operations, making it a potentially attractive target for attackers seeking to compromise sensitive organizational data. The vulnerability exists within the html/matPat/restaurar_produto.php component, which handles product restoration functionality within the system's database operations. This particular module processes user input through the id_produto parameter extracted from the HTTP GET request, creating a direct pathway for malicious SQL injection attacks.

The technical flaw represents a classic SQL injection vulnerability where the application fails to implement proper input validation or parameterization mechanisms. The id_produto parameter obtained from $_GET is directly concatenated into SQL query strings without any sanitization or prepared statement usage, creating an exploitable condition that allows attackers to manipulate database queries through crafted input. This vulnerability falls under CWE-89 which specifically addresses SQL injection flaws where untrusted data is incorporated into SQL commands without proper escaping or parameterization. The absence of input sanitization creates a pathway for attackers to execute arbitrary SQL commands, potentially leading to unauthorized data access, modification, or deletion.

The operational impact of this vulnerability extends beyond simple data exposure, as it could enable attackers to gain unauthorized access to sensitive institutional information including donor records, beneficiary data, financial transactions, and operational details. Attackers could leverage this vulnerability to extract confidential information, modify institutional records, or even escalate privileges within the system. The consequences are particularly severe for charitable institutions that handle vulnerable populations and sensitive personal data, potentially compromising the privacy and security of both donors and beneficiaries. This vulnerability could also serve as a foothold for further attacks within the organization's network infrastructure, as it provides an entry point that could be exploited to gain deeper system access. The vulnerability affects all versions prior to 3.6.6, indicating that organizations using older versions remain at significant risk.

The remediation strategy for this vulnerability involves upgrading to WeGIA version 3.6.6 or later, which implements proper parameterization and input sanitization measures. Organizations should also implement additional defensive measures including input validation, least privilege access controls, and regular security assessments. The fix should include proper use of prepared statements or parameterized queries to ensure that user input cannot be interpreted as SQL commands. Security teams should also conduct comprehensive vulnerability assessments to identify other potential injection points within the application and implement web application firewalls to detect and block malicious SQL injection attempts. This vulnerability demonstrates the critical importance of secure coding practices and proper input validation in web applications, aligning with ATT&CK technique T1190 which covers exploitation of vulnerabilities in web applications through SQL injection attacks. Organizations should also consider implementing automated security scanning tools to identify similar vulnerabilities in their web applications and ensure that all database interactions follow secure coding standards to prevent similar issues from occurring in the future.

Responsible

GitHub M

Reservation

03/09/2026

Disclosure

03/11/2026

Moderation

accepted

CPE

ready

EPSS

0.00387

KEV

no

Activities

very low

Sources

Do you need the next level of professionalism?

Upgrade your account now!