CVE-2026-31895

WeGIA has a SQL Injection via Direct Query Interpolation in restaurar_produto.php

Published Mar 11, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

WeGIA, a web manager for charitable institutions, contains a SQL injection flaw in the restaurar_produto.php file. The id_produto value from the $_GET request is inserted directly into a SQL query without any parameterization or sanitization, allowing an attacker to manipulate the query argument. This flaw is a classic example of CWE-89 and could enable unauthorized reading, modification, or deletion of product data, and potentially broader database compromise if the attacker can elevate their privileges in the resulting SQL context.

Affected Systems

The vulnerability exists in all releases of WeGIA prior to version 3.6.6, including 3.6.5 and earlier. The vendor identified the affected product as LabRedesCefetRJ:WeGIA.

Risk and Exploitability

The CVSS score for this issue is 8.8, indicating a high severity level. The EPSS score is less than 1%, suggesting that, at present, exploitation is unlikely but still possible in environments that expose the vulnerable endpoint. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. Exploitation would likely occur remotely through a crafted URL containing a malicious id_produto value, though the specific authentication state required is not detailed in the source information.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor's patch to upgrade to WeGIA version 3.6.6 or later.

Generated by OpenCVE AI on March 17, 2026 at 15:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Wegia
Wegia wegia
CPEs cpe:2.3:a:wegia:wegia:*:*:*:*:*:*:*:*
Vendors & Products Wegia
Wegia wegia
Type Values Removed Values Added
First Time appeared Labredescefetrj
Labredescefetrj wegia
Vendors & Products Labredescefetrj
Labredescefetrj wegia
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title WeGIA has a SQL Injection via Direct Query Interpolation in restaurar_produto.php
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 11, 2026, 8:27 PM
Reserved
Mar 9, 2026, 9:59 PM
Status
Analyzed
Published
Mar 11, 2026, 8:16 PM
Modified
Jun 17, 2026, 10:34 AM