CVE-2026-33134

WeGIA has Authenticated Time-Based Blind SQL Injection in `restaurar_produto.php` via `id_produto` parameter

Published Mar 20, 2026 CVSS 3.1 · 9.3 Critical EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

An authenticated attacker can inject arbitrary SQL commands through the id_produto GET parameter in the restaurar_produto.php endpoint. The code concatenates the parameter directly into two SQL statements without input validation or parameterization, enabling full data extraction, modification, or deletion across the database. This weakness falls under CWE‑89 and, if exploited, can lead to complete compromise of sensitive institutional data and alteration of critical business records.

Affected Systems

The affected system is the WeGIA web manager for charitable institutions developed by LabRedesCefetRJ. Versions 3.6.5 and earlier contain the vulnerability. The issue was fixed in release 3.6.6. All deployments running 3.6.5 or lower are vulnerable until upgraded.

Risk and Exploitability

The vulnerability scores 9.3 on CVSS, indicating a critical severity. EPSS is below 1 %, suggesting a low probability of widespread exploitation, and it is not listed in the CISA KEV catalog. The attack requires an authenticated session, meaning an attacker must already have valid credentials. The exploitation path involves sending a crafted id_produto value and observing timing responses to confirm the injection, enabling the attacker to extract or modify database contents.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade WeGIA to version 3.6.6 or later

Generated by OpenCVE AI on March 20, 2026 at 20:22 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
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Labredescefetrj
Labredescefetrj wegia
Vendors & Products Labredescefetrj
Labredescefetrj wegia
Type Values Removed Values Added
Description 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.
Title WeGIA has Authenticated Time-Based Blind SQL Injection in `restaurar_produto.php` via `id_produto` parameter
Weaknesses CWE-89
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-89

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 20, 2026, 6:07 PM
Reserved
Mar 17, 2026, 8:35 PM
Status
Analyzed
Published
Mar 20, 2026, 11:18 AM
Modified
Jun 17, 2026, 10:37 AM