Description
WeGIA is a web manager for charitable institutions. Prior to 3.8.6, an authenticated user with access to the Material & Patrimônio module can submit id_produto to web/html/matPat/restaurar_produto_desocultar.php, where a second extract($_REQUEST) overwrites the value previously sanitized by intval(). The raw value is interpolated into UPDATE statements for the produto, isaida, and ientrada tables. An attacker can execute arbitrary SQL to extract sensitive database records or modify institutional and inventory data. This issue is fixed in version 3.8.6.
References6
- github.com/LabRedesCefetRJ/WeGIA/commit/8fa3dfcd71c2058c3b6127f…
- github.com/LabRedesCefetRJ/WeGIA/issues/99
- github.com/LabRedesCefetRJ/WeGIA/pull/1705
- github.com/LabRedesCefetRJ/WeGIA/releases/tag/3.8.6
- github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-9q8x-…
- github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-9q8x-…
Metrics
- CVSS 3.1
-
8.8
HIGH
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - EPSS — exploit probability
- 1% percentile: 48 · as of 11 November 2026
- CWE
- CWE-89
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.